home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 June: Reference Library / Dev.CD Jun 94.toast / Technical Documentation / Mac Tech Notes (DocViewer) / Hardware / HW 01 - ADB (Space Aliens) < prev    next >
MacBinary  |  1994-04-27  |  160.1 KB  |  [ONLN/HLX2]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
100% file MacBinary II, inited, Tue Apr 19 11:25:42 1994, modified Wed Apr 27 06:13:49 1994, creator 'HLX2', type 'ONLN', 159876 bytes "HW 01 - ADB (Space Aliens)" , at 0x27104 3729 bytes resource default (weak)
99% file data default
100% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[ONLN]
macFileCreator[HLX2]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 1a 48 57 20 30 31 20 | 2d 20 41 44 42 20 28 53 |..HW 01 |- ADB (S|
|00000010| 70 61 63 65 20 41 6c 69 | 65 6e 73 29 00 00 00 00 |pace Ali|ens)....|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 4f 4e 4c 4e 48 4c 58 | 32 01 00 00 00 00 00 00 |.ONLNHLX|2.......|
|00000050| 00 00 00 00 02 70 84 00 | 00 0e 91 a9 d9 a8 76 a9 |.....p..|......v.|
|00000060| e3 eb 5d 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |..].....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 04 ba 00 00 |........|........|
|00000080| 41 44 42 d0 54 68 65 20 | 55 6e 74 6f 6c 64 20 53 |ADB.The |Untold S|
|00000090| 74 6f 72 79 20 3a 20 53 | 70 61 63 65 20 41 6c 69 |tory : S|pace Ali|
|000000a0| 65 6e 73 20 41 74 65 20 | 4d 79 20 4d 6f 75 73 65 |ens Ate |My Mouse|
|000000b0| 0d 48 61 72 64 77 61 72 | 65 09 0d 63 68 09 4a 61 |.Hardwar|e..ch.Ja|
|000000c0| 6e 75 61 72 79 20 31 39 | 39 34 0d 4f 72 69 67 69 |nuary 19|94.Origi|
|000000d0| 6e 61 6c 6c 79 20 62 79 | 3a 09 43 61 6d 65 72 6f |nally by|:.Camero|
|000000e0| 6e 20 42 69 72 73 65 2c | 20 52 69 63 68 20 4b 75 |n Birse,| Rich Ku|
|000000f0| 62 6f 74 61 09 4f 63 74 | 6f 62 65 72 20 31 39 39 |bota.Oct|ober 199|
|00000100| 31 0d 54 68 69 73 20 54 | 65 63 68 6e 69 63 61 6c |1.This T|echnical|
|00000110| 20 4e 6f 74 65 20 65 78 | 70 6c 61 69 6e 73 20 61 | Note ex|plains a|
|00000120| 20 6e 75 6d 62 65 72 20 | 6f 66 20 65 73 6f 74 65 | number |of esote|
|00000130| 72 69 63 20 61 6e 64 20 | 75 6e 6b 6e 6f 77 6e 20 |ric and |unknown |
|00000140| 69 73 73 75 65 73 20 63 | 6f 6e 63 65 72 6e 69 6e |issues c|oncernin|
|00000150| 67 20 74 68 65 20 41 70 | 70 6c 65 20 44 65 73 6b |g the Ap|ple Desk|
|00000160| 74 6f 70 20 42 75 73 20 | 28 41 44 42 29 2e 20 20 |top Bus |(ADB). |
|00000170| 49 74 20 69 6e 63 6f 72 | 70 6f 72 61 74 65 73 20 |It incor|porates |
|00000180| 6d 61 74 65 72 69 61 6c | 20 66 72 6f 6d 20 74 68 |material| from th|
|00000190| 65 20 6f 72 69 67 69 6e | 61 6c 20 76 65 72 73 69 |e origin|al versi|
|000001a0| 6f 6e 20 6f 66 20 74 68 | 69 73 20 6e 6f 74 65 2c |on of th|is note,|
|000001b0| 20 61 6c 6f 6e 67 20 77 | 69 74 68 20 61 20 6c 61 | along w|ith a la|
|000001c0| 72 67 65 20 61 6d 6f 75 | 6e 74 20 6f 66 20 6e 65 |rge amou|nt of ne|
|000001d0| 77 20 69 6e 66 6f 72 6d | 61 74 69 6f 6e 2c 20 61 |w inform|ation, a|
|000001e0| 6e 64 20 69 73 20 69 6e | 74 65 6e 64 65 64 20 74 |nd is in|tended t|
|000001f0| 6f 20 64 65 74 61 69 6c | 20 69 6e 66 6f 72 6d 61 |o detail| informa|
|00000200| 74 69 6f 6e 20 63 6f 6e | 63 65 72 6e 69 6e 67 20 |tion con|cerning |
|00000210| 61 6c 6c 20 6c 65 76 65 | 6c 73 20 6f 66 20 74 68 |all leve|ls of th|
|00000220| 65 20 41 44 42 2c 20 66 | 72 6f 6d 20 74 68 65 20 |e ADB, f|rom the |
|00000230| 68 61 72 64 77 61 72 65 | 20 74 6f 20 74 68 65 20 |hardware| to the |
|00000240| 61 70 70 6c 69 63 61 74 | 69 6f 6e 20 75 73 61 67 |applicat|ion usag|
|00000250| 65 20 6c 65 76 65 6c 2e | 20 20 54 68 69 73 20 6e |e level.| This n|
|00000260| 6f 74 65 20 69 73 20 73 | 75 70 70 6c 65 6d 65 6e |ote is s|upplemen|
|00000270| 74 61 72 79 20 74 6f 20 | 74 68 65 20 69 6e 66 6f |tary to |the info|
|00000280| 72 6d 61 74 69 6f 6e 20 | 69 6e 20 54 68 65 20 47 |rmation |in The G|
|00000290| 75 69 64 65 20 54 6f 20 | 4d 61 63 69 6e 74 6f 73 |uide To |Macintos|
|000002a0| 68 20 46 61 6d 69 6c 79 | 20 48 61 72 64 77 61 72 |h Family| Hardwar|
|000002b0| 65 20 61 6e 64 20 69 6e | 20 74 68 65 20 41 70 70 |e and in| the App|
|000002c0| 6c 65 20 44 65 73 6b 74 | 6f 70 20 42 75 73 20 53 |le Deskt|op Bus S|
|000002d0| 70 65 63 69 66 69 63 61 | 74 69 6f 6e 2e 20 54 68 |pecifica|tion. Th|
|000002e0| 65 20 69 6e 66 6f 72 6d | 61 74 69 6f 6e 20 69 6e |e inform|ation in|
|000002f0| 20 74 68 65 20 73 70 65 | 63 69 66 69 63 61 74 69 | the spe|cificati|
|00000300| 6f 6e 20 69 73 20 74 68 | 65 20 6d 6f 73 74 20 61 |on is th|e most a|
|00000310| 63 63 75 72 61 74 65 20 | 73 6f 75 72 63 65 20 6f |ccurate |source o|
|00000320| 66 20 64 61 74 61 2c 20 | 61 6e 64 20 75 6e 6c 65 |f data, |and unle|
|00000330| 73 73 20 69 74 20 69 73 | 20 73 70 65 63 69 66 69 |ss it is| specifi|
|00000340| 63 61 6c 6c 79 20 72 65 | 66 75 74 65 64 2c 20 69 |cally re|futed, i|
|00000350| 74 20 73 68 6f 75 6c 64 | 20 62 65 20 74 72 65 61 |t should| be trea|
|00000360| 74 65 64 20 61 73 20 74 | 68 65 20 61 75 74 68 6f |ted as t|he autho|
|00000370| 72 69 74 61 74 69 76 65 | 20 73 6f 75 72 63 65 2e |ritative| source.|
|00000380| 0d 43 68 61 6e 67 65 73 | 20 73 69 6e 63 65 20 4f |.Changes| since O|
|00000390| 63 74 6f 62 65 72 20 31 | 39 39 31 3a 20 20 54 68 |ctober 1|991: Th|
|000003a0| 69 73 20 6e 6f 74 65 20 | 68 61 73 20 62 65 65 6e |is note |has been|
|000003b0| 20 72 65 77 72 69 74 74 | 65 6e 3b 20 6e 65 77 20 | rewritt|en; new |
|000003c0| 69 6e 66 6f 72 6d 61 74 | 69 6f 6e 20 61 70 70 65 |informat|ion appe|
|000003d0| 61 72 73 20 74 68 72 6f | 75 67 68 6f 75 74 20 74 |ars thro|ughout t|
|000003e0| 68 65 20 64 6f 63 75 6d | 65 6e 74 2e 20 20 49 6e |he docum|ent. In|
|000003f0| 20 70 61 72 74 69 63 75 | 6c 61 72 2c 20 74 68 65 | particu|lar, the|
|00000400| 20 43 75 72 73 6f 72 20 | 44 65 76 69 63 65 20 4d | Cursor |Device M|
|00000410| 61 6e 61 67 65 72 20 69 | 73 20 64 69 73 63 75 73 |anager i|s discus|
|00000420| 73 65 64 20 69 6e 20 74 | 68 69 73 20 6e 6f 74 65 |sed in t|his note|
|00000430| 20 66 6f 72 20 74 68 65 | 20 66 69 72 73 74 20 74 | for the| first t|
|00000440| 69 6d 65 2e 20 54 68 65 | 20 69 6e 66 6f 72 6d 61 |ime. The| informa|
|00000450| 74 69 6f 6e 20 72 65 67 | 61 72 64 69 6e 67 20 62 |tion reg|arding b|
|00000460| 75 67 73 20 66 69 78 65 | 64 20 69 6e 20 53 79 73 |ugs fixe|d in Sys|
|00000470| 74 65 6d 20 36 2e 30 2e | 34 20 77 61 73 20 6f 6d |tem 6.0.|4 was om|
|00000480| 69 74 74 65 64 2e 0d 54 | 6f 70 69 63 73 0d a5 09 |itted..T|opics...|
|00000490| 41 20 64 69 73 63 75 73 | 73 69 6f 6e 20 6f 66 20 |A discus|sion of |
|000004a0| 41 44 42 20 68 61 72 64 | 77 61 72 65 20 69 73 73 |ADB hard|ware iss|
|000004b0| 75 65 73 0d a5 09 49 6e | 66 6f 72 6d 61 74 69 6f |ues...In|formatio|
|000004c0| 6e 20 6f 6e 20 74 68 65 | 20 41 44 42 20 70 72 6f |n on the| ADB pro|
|000004d0| 74 6f 63 6f 6c 2c 20 69 | 6e 63 6c 75 64 69 6e 67 |tocol, i|ncluding|
|000004e0| 20 61 20 64 65 74 61 69 | 6c 65 64 20 64 65 73 63 | a detai|led desc|
|000004f0| 72 69 70 74 69 6f 6e 20 | 6f 66 20 74 68 65 20 72 |ription |of the r|
|00000500| 65 6c 6f 63 61 74 69 6f | 6e 20 61 6e 64 20 61 75 |elocatio|n and au|
|00000510| 74 6f 70 6f 6c 6c 69 6e | 67 20 6d 65 63 68 61 6e |topollin|g mechan|
|00000520| 69 73 6d 73 2e 0d a5 09 | 54 68 65 20 72 65 63 6f |isms....|The reco|
|00000530| 6d 6d 65 6e 64 65 64 20 | 6d 65 74 68 6f 64 20 6f |mmended |method o|
|00000540| 66 20 41 44 42 20 64 72 | 69 76 65 72 20 69 6e 73 |f ADB dr|iver ins|
|00000550| 74 61 6c 6c 61 74 69 6f | 6e 0d a5 09 44 6f 63 75 |tallatio|n...Docu|
|00000560| 6d 65 6e 74 61 74 69 6f | 6e 20 66 6f 72 20 74 68 |mentatio|n for th|
|00000570| 65 20 43 75 72 73 6f 72 | 20 44 65 76 69 63 65 20 |e Cursor| Device |
|00000580| 4d 61 6e 61 67 65 72 0d | a5 09 44 65 73 63 72 69 |Manager.|..Descri|
|00000590| 70 74 69 6f 6e 20 6f 66 | 20 74 68 65 20 64 61 74 |ption of| the dat|
|000005a0| 61 20 66 6f 72 6d 61 74 | 73 20 75 73 65 64 20 62 |a format|s used b|
|000005b0| 79 20 41 70 70 6c 65 20 | 6d 69 63 65 20 61 6e 64 |y Apple |mice and|
|000005c0| 20 6b 65 79 62 6f 61 72 | 64 73 0d a5 09 48 6f 77 | keyboar|ds...How|
|000005d0| 20 74 6f 20 67 65 74 20 | 61 6e 20 41 44 42 20 6c | to get |an ADB l|
|000005e0| 69 63 65 6e 73 65 0d 54 | 68 65 20 41 44 42 20 48 |icense.T|he ADB H|
|000005f0| 61 72 64 77 61 72 65 0d | 54 68 65 20 41 44 42 20 |ardware.|The ADB |
|00000600| 69 73 20 61 20 73 69 6d | 70 6c 65 20 73 65 72 69 |is a sim|ple seri|
|00000610| 61 6c 20 62 75 73 20 77 | 69 74 68 20 63 6f 6c 6c |al bus w|ith coll|
|00000620| 69 73 69 6f 6e 20 64 65 | 74 65 63 74 69 6f 6e 2e |ision de|tection.|
|00000630| 20 20 41 20 63 6f 6d 6d | 6f 6e 20 69 6d 70 6c 65 | A comm|on imple|
|00000640| 6d 65 6e 74 61 74 69 6f | 6e 20 70 6c 61 74 66 6f |mentatio|n platfo|
|00000650| 72 6d 20 66 6f 72 20 74 | 68 65 20 70 72 6f 74 6f |rm for t|he proto|
|00000660| 63 6f 6c 20 69 73 20 61 | 20 73 69 6d 70 6c 65 20 |col is a| simple |
|00000670| 6d 69 63 72 6f 63 6f 6e | 74 72 6f 6c 6c 65 72 3b |microcon|troller;|
|00000680| 20 61 20 32 20 4d 48 7a | 20 4d 6f 74 6f 72 6f 6c | a 2 MHz| Motorol|
|00000690| 61 20 36 38 48 43 31 31 | 20 68 61 73 20 62 65 65 |a 68HC11| has bee|
|000006a0| 6e 20 75 73 65 64 20 77 | 69 74 68 20 73 75 63 63 |n used w|ith succ|
|000006b0| 65 73 73 2c 20 61 6c 74 | 68 6f 75 67 68 20 61 6e |ess, alt|hough an|
|000006c0| 79 20 6e 75 6d 62 65 72 | 20 6f 66 20 6d 69 63 72 |y number| of micr|
|000006d0| 6f 63 6f 6e 74 72 6f 6c | 6c 65 72 73 20 77 6f 75 |ocontrol|lers wou|
|000006e0| 6c 64 20 64 6f 20 61 20 | 6d 6f 72 65 20 74 68 61 |ld do a |more tha|
|000006f0| 6e 20 61 64 65 71 75 61 | 74 65 20 6a 6f 62 2e 20 |n adequa|te job. |
|00000700| 20 54 68 65 20 32 20 4d | 48 7a 20 63 6c 6f 63 6b | The 2 M|Hz clock|
|00000710| 20 73 65 65 6d 65 64 20 | 74 6f 20 62 65 20 63 6c | seemed |to be cl|
|00000720| 6f 73 65 20 74 6f 20 6d | 69 6e 69 6d 61 6c 20 66 |ose to m|inimal f|
|00000730| 6f 72 20 74 68 69 73 20 | 61 70 70 6c 69 63 61 74 |or this |applicat|
|00000740| 69 6f 6e 2e 20 20 54 68 | 65 20 62 75 73 20 68 61 |ion. Th|e bus ha|
|00000750| 73 20 61 20 72 65 6c 61 | 74 69 76 65 6c 79 20 6c |s a rela|tively l|
|00000760| 6f 77 20 62 61 6e 64 77 | 69 64 74 68 3b 20 67 69 |ow bandw|idth; gi|
|00000770| 76 65 6e 20 74 68 65 20 | 70 61 63 6b 65 74 20 73 |ven the |packet s|
|00000780| 74 72 75 63 74 75 72 65 | 2c 20 74 68 65 20 74 68 |tructure|, the th|
|00000790| 65 6f 72 65 74 69 63 61 | 6c 20 6d 61 78 69 6d 75 |eoretica|l maximu|
|000007a0| 6d 20 62 61 6e 64 77 69 | 64 74 68 20 69 73 20 6f |m bandwi|dth is o|
|000007b0| 6e 20 74 68 65 20 6f 72 | 64 65 72 20 6f 66 20 31 |n the or|der of 1|
|000007c0| 30 30 20 2d 20 32 30 30 | 20 62 79 74 65 73 2f 73 |00 - 200| bytes/s|
|000007d0| 65 63 6f 6e 64 2e 20 20 | 49 6e 20 70 72 61 63 74 |econd. |In pract|
|000007e0| 69 63 65 2c 20 74 68 65 | 20 62 75 73 20 69 73 20 |ice, the| bus is |
|000007f0| 6e 6f 74 20 73 75 69 74 | 61 62 6c 65 20 66 6f 72 |not suit|able for|
|00000800| 20 64 61 74 61 20 74 72 | 61 6e 73 66 65 72 20 61 | data tr|ansfer a|
|00000810| 70 70 6c 69 63 61 74 69 | 6f 6e 73 3b 20 69 74 20 |pplicati|ons; it |
|00000820| 73 65 72 76 65 73 20 77 | 65 6c 6c 20 61 73 20 61 |serves w|ell as a|
|00000830| 20 67 65 6e 65 72 61 6c | 20 70 75 72 70 6f 73 65 | general| purpose|
|00000840| 20 69 6e 70 75 74 20 64 | 65 76 69 63 65 20 62 75 | input d|evice bu|
|00000850| 73 2c 20 62 75 74 20 68 | 69 67 68 20 64 61 74 61 |s, but h|igh data|
|00000860| 20 72 61 74 65 73 20 77 | 69 6c 6c 20 6e 6f 74 20 | rates w|ill not |
|00000870| 77 6f 72 6b 20 77 65 6c | 6c 2e 0d 49 6e 20 67 65 |work wel|l..In ge|
|00000880| 6e 65 72 61 6c 2c 20 74 | 68 65 20 74 69 6d 69 6e |neral, t|he timin|
|00000890| 67 20 66 6f 72 20 74 68 | 65 20 41 44 42 20 69 73 |g for th|e ADB is|
|000008a0| 20 66 61 69 72 6c 79 20 | 74 6f 6c 65 72 61 6e 74 | fairly |tolerant|
|000008b0| 20 6f 66 20 73 6d 61 6c | 6c 20 76 61 72 69 61 6e | of smal|l varian|
|000008c0| 63 65 73 3b 20 68 6f 77 | 65 76 65 72 2c 20 6d 61 |ces; how|ever, ma|
|000008d0| 6e 79 20 72 65 63 65 6e | 74 20 4d 61 63 69 6e 74 |ny recen|t Macint|
|000008e0| 6f 73 68 65 73 20 61 72 | 65 20 6d 6f 72 65 20 64 |oshes ar|e more d|
|000008f0| 65 6d 61 6e 64 69 6e 67 | 20 74 68 61 6e 20 74 68 |emanding| than th|
|00000900| 65 69 72 20 70 72 65 64 | 65 63 65 73 73 6f 72 73 |eir pred|ecessors|
|00000910| 2e 20 46 6f 72 20 74 68 | 69 73 20 72 65 61 73 6f |. For th|is reaso|
|00000920| 6e 2c 20 64 65 76 69 63 | 65 73 20 73 68 6f 75 6c |n, devic|es shoul|
|00000930| 64 20 62 65 20 74 65 73 | 74 65 64 20 6f 6e 20 61 |d be tes|ted on a|
|00000940| 20 77 69 64 65 20 72 61 | 6e 67 65 20 6f 66 20 6d | wide ra|nge of m|
|00000950| 61 63 68 69 6e 65 73 3b | 20 74 68 65 20 62 65 73 |achines;| the bes|
|00000960| 74 20 74 65 73 74 20 66 | 6f 72 20 63 6f 6d 70 6c |t test f|or compl|
|00000970| 69 61 6e 63 65 20 69 73 | 20 74 65 73 74 69 6e 67 |iance is| testing|
|00000980| 2e 20 20 53 70 65 63 69 | 66 69 63 61 6c 6c 79 2c |. Speci|fically,|
|00000990| 20 74 68 65 20 54 6c 74 | 20 28 73 74 6f 70 20 74 | the Tlt| (stop t|
|000009a0| 6f 20 73 74 61 72 74 20 | 74 69 6d 65 29 20 70 61 |o start |time) pa|
|000009b0| 72 61 6d 65 74 65 72 20 | 68 61 73 20 62 65 63 6f |rameter |has beco|
|000009c0| 6d 65 20 6d 75 63 68 20 | 6c 65 73 73 20 74 6f 6c |me much |less tol|
|000009d0| 65 72 61 6e 74 20 69 6e | 20 72 65 63 65 6e 74 20 |erant in| recent |
|000009e0| 4d 61 63 69 6e 74 6f 73 | 68 65 73 3b 20 66 61 69 |Macintos|hes; fai|
|000009f0| 72 6c 79 20 63 6c 6f 73 | 65 20 61 64 68 65 72 65 |rly clos|e adhere|
|00000a00| 6e 63 65 20 74 6f 20 69 | 74 73 20 32 30 30 20 b5 |nce to i|ts 200 .|
|00000a10| 73 20 74 69 6d 69 6e 67 | 20 69 73 20 69 6d 70 6f |s timing| is impo|
|00000a20| 72 74 61 6e 74 2e 20 20 | 49 6e 20 70 61 72 74 69 |rtant. |In parti|
|00000a30| 63 75 6c 61 72 2c 20 64 | 65 76 69 63 65 73 20 77 |cular, d|evices w|
|00000a40| 68 69 63 68 20 72 65 73 | 70 6f 6e 64 20 6d 6f 72 |hich res|pond mor|
|00000a50| 65 20 72 61 70 69 64 6c | 79 20 74 68 61 6e 20 74 |e rapidl|y than t|
|00000a60| 68 65 20 31 34 30 20 b5 | 73 20 6d 69 6e 69 6d 75 |he 140 .|s minimu|
|00000a70| 6d 20 64 65 6c 61 79 20 | 77 69 6c 6c 20 6f 66 74 |m delay |will oft|
|00000a80| 65 6e 20 66 61 69 6c 20 | 74 6f 20 69 6e 69 74 69 |en fail |to initi|
|00000a90| 61 6c 69 7a 65 20 70 72 | 6f 70 65 72 6c 79 2e 0d |alize pr|operly..|
|00000aa0| 49 74 20 69 73 20 69 6d | 70 6f 72 74 61 6e 74 20 |It is im|portant |
|00000ab0| 74 68 61 74 20 79 6f 75 | 72 20 64 65 76 69 63 65 |that you|r device|
|00000ac0| 20 62 65 20 66 61 69 72 | 6c 79 20 74 6f 6c 65 72 | be fair|ly toler|
|00000ad0| 61 6e 74 20 6f 66 20 70 | 72 6f 62 6c 65 6d 73 20 |ant of p|roblems |
|00000ae0| 6f 6e 20 74 68 65 20 62 | 75 73 3b 20 69 66 20 61 |on the b|us; if a|
|00000af0| 20 63 6f 6d 6d 61 6e 64 | 20 70 61 63 6b 65 74 20 | command| packet |
|00000b00| 62 65 67 69 6e 73 20 62 | 75 74 20 6e 65 76 65 72 |begins b|ut never|
|00000b10| 20 73 65 65 6d 73 20 74 | 6f 20 63 6f 6d 70 6c 65 | seems t|o comple|
|00000b20| 74 65 2c 20 79 6f 75 72 | 20 64 65 76 69 63 65 20 |te, your| device |
|00000b30| 73 68 6f 75 6c 64 20 74 | 69 6d 65 20 6f 75 74 20 |should t|ime out |
|00000b40| 72 61 74 68 65 72 20 74 | 68 61 6e 20 68 61 6e 67 |rather t|han hang|
|00000b50| 3b 20 74 68 65 20 64 65 | 73 69 67 6e 20 6f 66 20 |; the de|sign of |
|00000b60| 74 68 65 20 62 75 73 20 | 61 6e 64 20 69 74 73 20 |the bus |and its |
|00000b70| 63 6f 6e 6e 65 63 74 6f | 72 73 20 6d 65 61 6e 73 |connecto|rs means|
|00000b80| 20 74 68 61 74 20 74 68 | 65 72 65 20 63 61 6e 20 | that th|ere can |
|00000b90| 62 65 20 6f 63 63 61 73 | 69 6f 6e 61 6c 20 67 6c |be occas|ional gl|
|00000ba0| 69 74 63 68 65 73 20 69 | 6e 20 74 68 65 20 63 6f |itches i|n the co|
|00000bb0| 6e 6e 65 63 74 69 6f 6e | 20 77 69 74 68 20 74 68 |nnection| with th|
|00000bc0| 65 20 68 6f 73 74 2c 20 | 61 6e 64 20 79 6f 75 20 |e host, |and you |
|00000bd0| 73 68 6f 75 6c 64 20 74 | 72 79 20 74 6f 20 62 65 |should t|ry to be|
|00000be0| 20 61 73 20 74 6f 6c 65 | 72 61 6e 74 20 6f 66 20 | as tole|rant of |
|00000bf0| 74 68 65 73 65 20 61 73 | 20 70 6f 73 73 69 62 6c |these as| possibl|
|00000c00| 65 2e 20 0d 42 65 63 61 | 75 73 65 20 74 68 65 20 |e. .Beca|use the |
|00000c10| 41 44 42 20 62 75 73 20 | 69 73 20 6f 70 65 6e 20 |ADB bus |is open |
|00000c20| 63 6f 6c 6c 65 63 74 6f | 72 2c 20 63 6f 6c 6c 69 |collecto|r, colli|
|00000c30| 73 69 6f 6e 73 20 63 61 | 6e 20 62 65 20 64 65 74 |sions ca|n be det|
|00000c40| 65 63 74 65 64 20 77 68 | 65 6e 20 61 20 64 65 76 |ected wh|en a dev|
|00000c50| 69 63 65 20 69 73 20 61 | 74 74 65 6d 70 74 69 6e |ice is a|ttemptin|
|00000c60| 67 20 74 6f 20 64 72 69 | 76 65 20 74 68 65 20 62 |g to dri|ve the b|
|00000c70| 75 73 20 68 69 67 68 20 | 61 6e 64 20 61 6e 6f 74 |us high |and anot|
|00000c80| 68 65 72 20 64 65 76 69 | 63 65 20 70 75 6c 6c 73 |her devi|ce pulls|
|00000c90| 20 69 74 20 6c 6f 77 2e | 20 20 54 68 69 73 20 6d | it low.| This m|
|00000ca0| 65 61 6e 73 20 74 68 61 | 74 20 77 68 65 6e 65 76 |eans tha|t whenev|
|00000cb0| 65 72 20 74 68 65 20 64 | 65 76 69 63 65 20 69 73 |er the d|evice is|
|00000cc0| 20 64 72 69 76 69 6e 67 | 20 74 68 65 20 62 75 73 | driving| the bus|
|00000cd0| 20 68 69 67 68 2c 20 69 | 74 20 73 68 6f 75 6c 64 | high, i|t should|
|00000ce0| 20 62 65 20 77 61 74 63 | 68 69 6e 67 20 74 6f 20 | be watc|hing to |
|00000cf0| 6d 61 6b 65 20 73 75 72 | 65 20 74 68 65 20 62 75 |make sur|e the bu|
|00000d00| 73 20 69 73 20 61 63 74 | 75 61 6c 6c 79 20 68 69 |s is act|ually hi|
|00000d10| 67 68 3b 20 69 66 20 74 | 68 65 20 62 75 73 20 67 |gh; if t|he bus g|
|00000d20| 6f 65 73 20 6c 6f 77 2c | 20 73 6f 6d 65 20 6f 74 |oes low,| some ot|
|00000d30| 68 65 72 20 64 65 76 69 | 63 65 20 69 73 20 73 65 |her devi|ce is se|
|00000d40| 6e 64 69 6e 67 20 61 74 | 20 74 68 65 20 73 61 6d |nding at| the sam|
|00000d50| 65 20 74 69 6d 65 2e 20 | 57 68 65 6e 20 61 20 64 |e time. |When a d|
|00000d60| 65 76 69 63 65 20 64 65 | 74 65 63 74 73 20 61 20 |evice de|tects a |
|00000d70| 63 6f 6c 6c 69 73 69 6f | 6e 2c 20 69 74 20 73 68 |collisio|n, it sh|
|00000d80| 6f 75 6c 64 20 69 6d 6d | 65 64 69 61 74 65 6c 79 |ould imm|ediately|
|00000d90| 20 73 74 6f 70 20 74 72 | 61 6e 73 6d 69 74 74 69 | stop tr|ansmitti|
|00000da0| 6e 67 3b 20 74 68 69 73 | 20 6d 65 61 6e 73 20 74 |ng; this| means t|
|00000db0| 68 61 74 20 69 66 20 74 | 77 6f 20 64 65 76 69 63 |hat if t|wo devic|
|00000dc0| 65 73 20 61 72 65 20 63 | 6f 6c 6c 69 64 69 6e 67 |es are c|olliding|
|00000dd0| 2c 20 6f 6e 65 20 6f 66 | 20 74 68 65 6d 20 77 69 |, one of| them wi|
|00000de0| 6c 6c 20 64 65 74 65 63 | 74 20 74 68 65 20 63 6f |ll detec|t the co|
|00000df0| 6c 6c 69 73 69 6f 6e 2c | 20 77 68 69 6c 65 20 6f |llision,| while o|
|00000e00| 6e 65 20 77 69 6c 6c 20 | 6e 6f 74 2e 20 20 54 68 |ne will |not. Th|
|00000e10| 69 73 20 69 73 20 62 65 | 63 61 75 73 65 20 61 20 |is is be|cause a |
|00000e20| 64 65 76 69 63 65 20 63 | 61 6e 20 6f 6e 6c 79 20 |device c|an only |
|00000e30| 64 65 74 65 63 74 20 74 | 68 65 20 63 6f 6c 6c 69 |detect t|he colli|
|00000e40| 73 69 6f 6e 20 69 66 20 | 69 74 20 69 73 20 64 72 |sion if |it is dr|
|00000e50| 69 76 69 6e 67 20 74 68 | 65 20 62 75 73 20 68 69 |iving th|e bus hi|
|00000e60| 67 68 20 61 6e 64 20 61 | 6e 6f 74 68 65 72 20 64 |gh and a|nother d|
|00000e70| 65 76 69 63 65 20 64 72 | 69 76 65 73 20 69 74 20 |evice dr|ives it |
|00000e80| 6c 6f 77 2e 20 20 54 68 | 65 20 64 65 76 69 63 65 |low. Th|e device|
|00000e90| 20 64 72 69 76 69 6e 67 | 20 69 74 20 6c 6f 77 20 | driving| it low |
|00000ea0| 68 61 73 20 6e 6f 20 77 | 61 79 20 74 6f 20 74 65 |has no w|ay to te|
|00000eb0| 6c 6c 20 74 68 61 74 20 | 74 68 65 72 65 20 77 61 |ll that |there wa|
|00000ec0| 73 20 61 20 63 6f 6c 6c | 69 73 69 6f 6e 2c 20 61 |s a coll|ision, a|
|00000ed0| 73 20 74 68 65 20 62 75 | 73 20 66 6f 6c 6c 6f 77 |s the bu|s follow|
|00000ee0| 73 20 69 74 2e 20 20 53 | 69 6e 63 65 20 74 68 65 |s it. S|ince the|
|00000ef0| 20 64 65 74 65 63 74 69 | 6e 67 20 64 65 76 69 63 | detecti|ng devic|
|00000f00| 65 20 69 6d 6d 65 64 69 | 61 74 65 6c 79 20 73 74 |e immedi|ately st|
|00000f10| 6f 70 73 20 74 72 61 6e | 73 6d 69 74 74 69 6e 67 |ops tran|smitting|
|00000f20| 2c 20 74 68 65 20 6f 74 | 68 65 72 20 64 65 76 69 |, the ot|her devi|
|00000f30| 63 65 20 77 69 6c 6c 20 | 6e 6f 74 20 64 65 74 65 |ce will |not dete|
|00000f40| 63 74 20 74 68 65 20 63 | 6f 6c 6c 69 73 69 6f 6e |ct the c|ollision|
|00000f50| 2e 20 20 54 68 75 73 2c | 20 69 66 20 74 68 65 72 |. Thus,| if ther|
|00000f60| 65 20 61 72 65 20 61 20 | 6e 75 6d 62 65 72 20 6f |e are a |number o|
|00000f70| 66 20 64 65 76 69 63 65 | 73 20 74 72 61 6e 73 6d |f device|s transm|
|00000f80| 69 74 74 69 6e 67 20 6f | 6e 20 74 68 65 20 62 75 |itting o|n the bu|
|00000f90| 73 2c 20 6f 6e 6c 79 20 | 6f 6e 65 20 6f 66 20 74 |s, only |one of t|
|00000fa0| 68 65 6d 20 77 69 6c 6c | 20 63 6f 6d 70 6c 65 74 |hem will| complet|
|00000fb0| 65 20 69 74 73 20 74 72 | 61 6e 73 6d 69 73 73 69 |e its tr|ansmissi|
|00000fc0| 6f 6e 20 77 69 74 68 6f | 75 74 20 64 65 74 65 63 |on witho|ut detec|
|00000fd0| 74 69 6e 67 20 74 68 65 | 20 63 6f 6c 6c 69 73 69 |ting the| collisi|
|00000fe0| 6f 6e 2c 20 75 6e 6c 65 | 73 73 20 74 68 65 20 75 |on, unle|ss the u|
|00000ff0| 6e 6c 69 6b 65 6c 79 20 | 6f 63 63 75 72 72 65 6e |nlikely |occurren|
|00001000| 63 65 20 6f 66 20 6d 6f | 72 65 20 74 68 61 6e 20 |ce of mo|re than |
|00001010| 6f 6e 65 20 64 65 76 69 | 63 65 20 74 72 61 6e 73 |one devi|ce trans|
|00001020| 6d 69 74 74 69 6e 67 20 | 65 78 61 63 74 6c 79 20 |mitting |exactly |
|00001030| 74 68 65 20 73 61 6d 65 | 20 64 61 74 61 20 77 69 |the same| data wi|
|00001040| 74 68 20 74 68 65 20 73 | 61 6d 65 20 74 69 6d 69 |th the s|ame timi|
|00001050| 6e 67 20 6f 63 63 75 72 | 73 2c 20 61 6e 64 20 6e |ng occur|s, and n|
|00001060| 65 69 74 68 65 72 20 64 | 65 74 65 63 74 73 20 74 |either d|etects t|
|00001070| 68 65 20 63 6f 6c 6c 69 | 73 69 6f 6e 2e 0d 54 68 |he colli|sion..Th|
|00001080| 65 20 41 44 42 20 69 73 | 20 6e 6f 74 20 70 61 72 |e ADB is| not par|
|00001090| 74 69 63 75 6c 61 72 6c | 79 20 74 6f 6c 65 72 61 |ticularl|y tolera|
|000010a0| 6e 74 20 6f 66 20 64 65 | 76 69 63 65 73 20 62 65 |nt of de|vices be|
|000010b0| 69 6e 67 20 63 6f 6e 6e | 65 63 74 65 64 20 61 6e |ing conn|ected an|
|000010c0| 64 20 64 69 73 63 6f 6e | 6e 65 63 74 65 64 20 77 |d discon|nected w|
|000010d0| 68 69 6c 65 20 74 68 65 | 20 62 75 73 20 69 73 20 |hile the| bus is |
|000010e0| 6c 69 76 65 2e 20 54 68 | 65 72 65 20 69 73 6e 27 |live. Th|ere isn'|
|000010f0| 74 20 61 6e 79 20 73 6f | 66 74 77 61 72 65 20 61 |t any so|ftware a|
|00001100| 72 63 68 69 74 65 63 74 | 75 72 65 20 74 6f 20 64 |rchitect|ure to d|
|00001110| 65 74 65 63 74 20 74 68 | 65 20 70 72 65 73 65 6e |etect th|e presen|
|00001120| 63 65 20 6f 66 20 6e 65 | 77 20 64 65 76 69 63 65 |ce of ne|w device|
|00001130| 73 20 6f 72 20 74 68 65 | 20 61 62 73 65 6e 63 65 |s or the| absence|
|00001140| 20 6f 66 20 6f 6c 64 20 | 6f 6e 65 73 3b 20 66 75 | of old |ones; fu|
|00001150| 72 74 68 65 72 6d 6f 72 | 65 2c 20 6f 6e 20 73 6f |rthermor|e, on so|
|00001160| 6d 65 20 43 50 55 73 2c | 20 74 68 65 20 6d 6f 74 |me CPUs,| the mot|
|00001170| 68 65 72 62 6f 61 72 64 | 20 69 73 20 6e 6f 74 20 |herboard| is not |
|00001180| 77 65 6c 6c 20 70 72 6f | 74 65 63 74 65 64 20 66 |well pro|tected f|
|00001190| 72 6f 6d 20 76 6f 6c 74 | 61 67 65 20 74 72 61 6e |rom volt|age tran|
|000011a0| 73 69 65 6e 74 73 20 6f | 6e 20 74 68 65 20 41 44 |sients o|n the AD|
|000011b0| 42 20 63 6f 6e 6e 65 63 | 74 6f 72 3b 20 70 6c 75 |B connec|tor; plu|
|000011c0| 67 67 69 6e 67 20 69 6e | 20 61 20 64 65 76 69 63 |gging in| a devic|
|000011d0| 65 20 77 68 69 6c 65 20 | 74 68 65 20 4d 61 63 69 |e while |the Maci|
|000011e0| 6e 74 6f 73 68 20 69 73 | 20 6f 6e 20 63 6f 75 6c |ntosh is| on coul|
|000011f0| 64 20 63 61 75 73 65 20 | 64 61 6d 61 67 65 20 74 |d cause |damage t|
|00001200| 6f 20 74 68 65 20 41 44 | 42 20 74 72 61 6e 73 63 |o the AD|B transc|
|00001210| 65 69 76 65 72 20 6f 72 | 20 6f 74 68 65 72 20 70 |eiver or| other p|
|00001220| 6f 72 74 69 6f 6e 73 20 | 6f 66 20 74 68 65 20 4d |ortions |of the M|
|00001230| 61 63 69 6e 74 6f 73 68 | 27 73 20 63 69 72 63 75 |acintosh|'s circu|
|00001240| 69 74 72 79 2e 0d 4f 6e | 20 73 6f 6d 65 20 70 6f |itry..On| some po|
|00001250| 72 74 61 62 6c 65 20 4d | 61 63 69 6e 74 6f 73 68 |rtable M|acintosh|
|00001260| 65 73 2c 20 74 68 65 20 | 76 6f 6c 74 61 67 65 20 |es, the |voltage |
|00001270| 63 68 61 72 61 63 74 65 | 72 69 73 74 69 63 73 20 |characte|ristics |
|00001280| 61 72 65 20 6e 6f 74 20 | 65 78 61 63 74 6c 79 20 |are not |exactly |
|00001290| 77 68 61 74 20 69 73 20 | 73 70 65 63 69 66 69 65 |what is |specifie|
|000012a0| 64 20 69 6e 20 74 68 65 | 20 41 44 42 20 73 70 65 |d in the| ADB spe|
|000012b0| 63 2e 20 20 43 6c 65 61 | 72 6c 79 2c 20 70 6f 77 |c. Clea|rly, pow|
|000012c0| 65 72 20 69 73 20 76 65 | 72 79 20 76 61 6c 75 61 |er is ve|ry valua|
|000012d0| 62 6c 65 20 6f 6e 20 61 | 6c 6c 20 70 6f 72 74 61 |ble on a|ll porta|
|000012e0| 62 6c 65 20 63 6f 6d 70 | 75 74 65 72 73 2c 20 73 |ble comp|uters, s|
|000012f0| 6f 20 69 66 20 79 6f 75 | 72 20 64 65 76 69 63 65 |o if you|r device|
|00001300| 20 69 73 20 74 61 72 67 | 65 74 65 64 20 74 6f 77 | is targ|eted tow|
|00001310| 61 72 64 73 20 70 6f 72 | 74 61 62 6c 65 20 75 73 |ards por|table us|
|00001320| 65 2c 20 79 6f 75 20 73 | 68 6f 75 6c 64 20 62 65 |e, you s|hould be|
|00001330| 20 65 78 74 72 65 6d 65 | 6c 79 20 63 61 72 65 66 | extreme|ly caref|
|00001340| 75 6c 20 74 6f 20 6b 65 | 65 70 20 79 6f 75 72 20 |ul to ke|ep your |
|00001350| 70 6f 77 65 72 20 63 6f | 6e 73 75 6d 70 74 69 6f |power co|nsumptio|
|00001360| 6e 20 61 73 20 6c 6f 77 | 20 61 73 20 70 6f 73 73 |n as low| as poss|
|00001370| 69 62 6c 65 3b 20 77 68 | 69 6c 65 20 74 68 65 20 |ible; wh|ile the |
|00001380| 41 44 42 20 63 61 6e 20 | 73 75 70 70 6c 79 20 74 |ADB can |supply t|
|00001390| 68 65 20 66 75 6c 6c 20 | 76 6f 6c 74 61 67 65 20 |he full |voltage |
|000013a0| 73 70 65 63 69 66 69 65 | 64 20 69 6e 20 74 68 65 |specifie|d in the|
|000013b0| 20 73 70 65 63 2e 2c 20 | 64 72 61 77 69 6e 67 20 | spec., |drawing |
|000013c0| 74 68 69 73 20 6d 75 63 | 68 20 70 6f 77 65 72 20 |this muc|h power |
|000013d0| 77 69 6c 6c 20 6c 65 61 | 64 20 74 6f 20 6d 75 63 |will lea|d to muc|
|000013e0| 68 20 6d 6f 72 65 20 72 | 61 70 69 64 20 62 61 74 |h more r|apid bat|
|000013f0| 74 65 72 79 20 64 72 61 | 69 6e 69 6e 67 2e 20 4f |tery dra|ining. O|
|00001400| 6e 20 74 68 65 20 50 6f | 77 65 72 42 6f 6f 6b 20 |n the Po|werBook |
|00001410| 31 34 30 20 61 6e 64 20 | 31 37 30 2c 20 74 68 65 |140 and |170, the|
|00001420| 72 65 20 77 61 73 20 61 | 20 73 70 65 63 69 66 69 |re was a| specifi|
|00001430| 63 20 70 72 6f 62 6c 65 | 6d 20 77 68 69 63 68 20 |c proble|m which |
|00001440| 63 61 75 73 65 64 20 74 | 68 65 20 6c 6f 77 2d 6c |caused t|he low-l|
|00001450| 65 76 65 6c 20 69 6e 70 | 75 74 20 76 6f 6c 74 61 |evel inp|ut volta|
|00001460| 67 65 20 74 6f 20 67 6f | 20 61 62 6f 76 65 20 74 |ge to go| above t|
|00001470| 68 65 20 73 70 65 63 69 | 66 69 65 64 20 6d 61 78 |he speci|fied max|
|00001480| 69 6d 75 6d 20 6f 66 20 | 30 2e 38 20 76 6f 6c 74 |imum of |0.8 volt|
|00001490| 73 3b 20 69 74 20 63 6f | 6d 6d 6f 6e 6c 79 20 63 |s; it co|mmonly c|
|000014a0| 61 6d 65 20 63 6c 6f 73 | 65 20 74 6f 20 31 2e 35 |ame clos|e to 1.5|
|000014b0| 20 76 6f 6c 74 73 2e 20 | 54 68 69 73 20 68 61 73 | volts. |This has|
|000014c0| 20 63 61 75 73 65 64 20 | 70 72 6f 62 6c 65 6d 73 | caused |problems|
|000014d0| 20 66 6f 72 20 73 6f 6d | 65 20 74 68 69 72 64 2d | for som|e third-|
|000014e0| 70 61 72 74 79 20 64 65 | 76 69 63 65 73 3b 20 69 |party de|vices; i|
|000014f0| 74 20 68 61 73 20 62 65 | 65 6e 20 63 6f 72 72 65 |t has be|en corre|
|00001500| 63 74 65 64 20 6f 6e 20 | 61 6c 6c 20 6d 6f 72 65 |cted on |all more|
|00001510| 20 72 65 63 65 6e 74 20 | 6d 61 63 68 69 6e 65 73 | recent |machines|
|00001520| 2e 20 54 68 65 72 65 20 | 69 73 20 61 20 72 65 63 |. There |is a rec|
|00001530| 6f 6d 6d 65 6e 64 65 64 | 20 73 65 72 76 69 63 65 |ommended| service|
|00001540| 20 70 72 6f 63 65 64 75 | 72 65 20 66 6f 72 20 72 | procedu|re for r|
|00001550| 65 70 61 69 72 69 6e 67 | 20 74 68 69 73 20 70 72 |epairing| this pr|
|00001560| 6f 62 6c 65 6d 20 61 76 | 61 69 6c 61 62 6c 65 20 |oblem av|ailable |
|00001570| 66 72 6f 6d 20 41 70 70 | 6c 65 20 53 65 72 76 69 |from App|le Servi|
|00001580| 63 65 20 72 65 70 72 65 | 73 65 6e 74 61 74 69 76 |ce repre|sentativ|
|00001590| 65 73 2c 20 73 68 6f 75 | 6c 64 20 74 68 69 73 20 |es, shou|ld this |
|000015a0| 62 65 20 61 20 70 72 6f | 62 6c 65 6d 20 66 6f 72 |be a pro|blem for|
|000015b0| 20 61 20 75 73 65 72 2e | 0d 53 6f 66 74 20 50 6f | a user.|.Soft Po|
|000015c0| 77 65 72 0d 4f 6e 20 4d | 61 63 69 6e 74 6f 73 68 |wer.On M|acintosh|
|000015d0| 65 73 20 77 69 74 68 20 | 73 6f 66 74 77 61 72 65 |es with |software|
|000015e0| 20 70 6f 77 65 72 20 63 | 6f 6e 74 72 6f 6c 2c 20 | power c|ontrol, |
|000015f0| 74 68 65 20 6d 61 63 68 | 69 6e 65 20 63 61 6e 20 |the mach|ine can |
|00001600| 62 65 20 74 75 72 6e 65 | 64 20 6f 6e 20 62 79 20 |be turne|d on by |
|00001610| 61 6e 20 41 44 42 20 64 | 65 76 69 63 65 2e 20 20 |an ADB d|evice. |
|00001620| 54 68 69 73 20 69 73 20 | 61 63 63 6f 6d 70 6c 69 |This is |accompli|
|00001630| 73 68 65 64 20 62 79 20 | 6d 6f 6d 65 6e 74 61 72 |shed by |momentar|
|00001640| 69 6c 79 20 63 6f 6e 6e | 65 63 74 69 6e 67 20 70 |ily conn|ecting p|
|00001650| 69 6e 20 32 20 6f 6e 20 | 74 68 65 20 41 44 42 20 |in 2 on |the ADB |
|00001660| 63 6f 6e 6e 65 63 74 6f | 72 20 28 72 65 73 65 72 |connecto|r (reser|
|00001670| 76 65 64 29 20 74 6f 20 | 70 69 6e 20 34 20 28 67 |ved) to |pin 4 (g|
|00001680| 72 6f 75 6e 64 29 2e 20 | 20 50 69 6e 20 32 20 73 |round). | Pin 2 s|
|00001690| 68 6f 75 6c 64 20 62 65 | 20 6b 65 70 74 20 67 72 |hould be| kept gr|
|000016a0| 6f 75 6e 64 65 64 20 75 | 6e 74 69 6c 20 70 69 6e |ounded u|ntil pin|
|000016b0| 20 33 20 28 2b 35 20 76 | 6f 6c 74 73 29 20 63 6f | 3 (+5 v|olts) co|
|000016c0| 6d 65 73 20 75 70 20 74 | 6f 20 70 6f 77 65 72 2c |mes up t|o power,|
|000016d0| 20 6c 65 74 74 69 6e 67 | 20 79 6f 75 20 6b 6e 6f | letting| you kno|
|000016e0| 77 20 74 68 61 74 20 74 | 68 65 20 6d 61 63 68 69 |w that t|he machi|
|000016f0| 6e 65 20 68 61 73 20 61 | 63 74 75 61 6c 6c 79 20 |ne has a|ctually |
|00001700| 63 6f 6d 65 20 6f 6e 2e | 20 20 53 6f 6d 65 20 4d |come on.| Some M|
|00001710| 61 63 69 6e 74 6f 73 68 | 65 73 20 64 6f 20 6e 6f |acintosh|es do no|
|00001720| 74 20 68 61 76 65 20 73 | 6f 66 74 20 70 6f 77 65 |t have s|oft powe|
|00001730| 72 20 63 61 70 61 62 69 | 6c 69 74 69 65 73 3b 20 |r capabi|lities; |
|00001740| 6f 6e 20 74 68 65 73 65 | 20 6d 61 63 68 69 6e 65 |on these| machine|
|00001750| 73 2c 20 67 72 6f 75 6e | 64 69 6e 67 20 70 69 6e |s, groun|ding pin|
|00001760| 20 32 20 77 69 6c 6c 20 | 68 61 76 65 20 6e 6f 20 | 2 will |have no |
|00001770| 65 66 66 65 63 74 2e 0d | 54 68 65 20 41 44 42 20 |effect..|The ADB |
|00001780| 50 72 6f 74 6f 63 6f 6c | 0d 52 65 67 69 73 74 65 |Protocol|.Registe|
|00001790| 72 73 0d 45 61 63 68 20 | 41 44 42 20 64 65 76 69 |rs.Each |ADB devi|
|000017a0| 63 65 20 68 61 73 20 66 | 6f 75 72 20 6c 6f 67 69 |ce has f|our logi|
|000017b0| 63 61 6c 20 72 65 67 69 | 73 74 65 72 73 3b 20 74 |cal regi|sters; t|
|000017c0| 68 65 20 68 6f 73 74 20 | 63 61 6e 20 61 73 6b 20 |he host |can ask |
|000017d0| 74 68 65 20 64 65 76 69 | 63 65 20 74 6f 20 74 61 |the devi|ce to ta|
|000017e0| 6c 6b 20 6f 72 20 6c 69 | 73 74 65 6e 20 6f 6e 20 |lk or li|sten on |
|000017f0| 65 61 63 68 20 6f 6e 65 | 20 6f 66 20 74 68 65 73 |each one| of thes|
|00001800| 65 20 72 65 67 69 73 74 | 65 72 73 3b 20 61 20 74 |e regist|ers; a t|
|00001810| 61 6c 6b 20 63 6f 6d 6d | 61 6e 64 20 61 73 6b 73 |alk comm|and asks|
|00001820| 20 74 68 65 20 64 65 76 | 69 63 65 20 74 6f 20 6f | the dev|ice to o|
|00001830| 75 74 70 75 74 20 74 68 | 65 20 73 74 6f 72 65 64 |utput th|e stored|
|00001840| 20 76 61 6c 75 65 20 66 | 72 6f 6d 20 74 68 61 74 | value f|rom that|
|00001850| 20 72 65 67 69 73 74 65 | 72 3b 20 61 20 6c 69 73 | registe|r; a lis|
|00001860| 74 65 6e 20 63 6f 6d 6d | 61 6e 64 73 20 61 73 6b |ten comm|ands ask|
|00001870| 73 20 74 68 65 20 64 65 | 76 69 63 65 20 74 6f 20 |s the de|vice to |
|00001880| 61 63 63 65 70 74 20 61 | 20 6e 65 77 20 76 61 6c |accept a| new val|
|00001890| 75 65 20 66 6f 72 20 74 | 68 61 74 20 72 65 67 69 |ue for t|hat regi|
|000018a0| 73 74 65 72 2e 20 20 41 | 20 72 65 67 69 73 74 65 |ster. A| registe|
|000018b0| 72 20 63 61 6e 20 63 6f | 6e 74 61 69 6e 20 62 65 |r can co|ntain be|
|000018c0| 74 77 65 65 6e 20 32 20 | 61 6e 64 20 38 20 62 79 |tween 2 |and 8 by|
|000018d0| 74 65 73 2e 20 20 53 6f | 6d 65 20 6f 66 20 74 68 |tes. So|me of th|
|000018e0| 65 20 72 65 67 69 73 74 | 65 72 73 20 68 61 76 65 |e regist|ers have|
|000018f0| 20 70 72 65 64 65 66 69 | 6e 65 64 20 66 75 6e 63 | predefi|ned func|
|00001900| 74 69 6f 6e 73 3a 20 72 | 65 67 69 73 74 65 72 20 |tions: r|egister |
|00001910| 30 20 69 73 20 75 73 65 | 64 20 61 73 20 74 68 65 |0 is use|d as the|
|00001920| 20 70 72 69 6d 61 72 79 | 20 64 61 74 61 20 74 72 | primary| data tr|
|00001930| 61 6e 73 66 65 72 20 72 | 65 67 69 73 74 65 72 20 |ansfer r|egister |
|00001940| 66 6f 72 20 6d 6f 73 74 | 20 64 65 76 69 63 65 73 |for most| devices|
|00001950| 3b 20 69 74 20 69 73 20 | 74 68 69 73 20 72 65 67 |; it is |this reg|
|00001960| 69 73 74 65 72 20 77 68 | 69 63 68 20 69 73 20 70 |ister wh|ich is p|
|00001970| 6f 6c 6c 65 64 20 62 79 | 20 74 68 65 20 69 6e 70 |olled by| the inp|
|00001980| 75 74 20 6d 65 63 68 61 | 6e 69 73 6d 20 28 61 73 |ut mecha|nism (as|
|00001990| 20 64 65 73 63 72 69 62 | 65 64 20 62 65 6c 6f 77 | describ|ed below|
|000019a0| 29 2e 20 20 52 65 67 69 | 73 74 65 72 20 31 20 68 |). Regi|ster 1 h|
|000019b0| 61 73 20 6e 6f 20 73 70 | 65 63 69 66 69 65 64 20 |as no sp|ecified |
|000019c0| 75 73 65 3b 20 69 74 20 | 69 73 20 61 76 61 69 6c |use; it |is avail|
|000019d0| 61 62 6c 65 20 66 6f 72 | 20 61 6e 79 20 75 73 65 |able for| any use|
|000019e0| 20 74 68 65 20 64 65 76 | 69 63 65 20 6d 69 67 68 | the dev|ice migh|
|000019f0| 74 20 72 65 71 75 69 72 | 65 2e 20 20 52 65 67 69 |t requir|e. Regi|
|00001a00| 73 74 65 72 20 32 20 68 | 61 73 20 6e 6f 20 73 70 |ster 2 h|as no sp|
|00001a10| 65 63 69 66 69 65 64 20 | 75 73 65 20 66 6f 72 20 |ecified |use for |
|00001a20| 6d 6f 73 74 20 64 65 76 | 69 63 65 73 3b 20 74 68 |most dev|ices; th|
|00001a30| 65 20 41 44 42 20 73 70 | 65 63 69 66 69 63 61 74 |e ADB sp|ecificat|
|00001a40| 69 6f 6e 20 64 6f 65 73 | 20 64 65 66 69 6e 65 20 |ion does| define |
|00001a50| 61 6e 20 22 65 78 74 65 | 6e 64 65 64 20 61 64 64 |an "exte|nded add|
|00001a60| 72 65 73 73 20 64 65 76 | 69 63 65 22 20 70 72 6f |ress dev|ice" pro|
|00001a70| 74 6f 63 6f 6c 20 66 6f | 72 20 72 65 67 69 73 74 |tocol fo|r regist|
|00001a80| 65 72 20 32 20 6f 6e 20 | 64 65 76 69 63 65 73 20 |er 2 on |devices |
|00001a90| 61 74 20 61 64 64 72 65 | 73 73 20 31 2c 20 62 75 |at addre|ss 1, bu|
|00001aa0| 74 20 74 68 69 73 20 69 | 73 20 75 6e 75 73 65 64 |t this i|s unused|
|00001ab0| 20 62 79 20 6d 6f 73 74 | 20 64 65 76 65 6c 6f 70 | by most| develop|
|00001ac0| 65 72 73 2e 20 20 52 65 | 67 69 73 74 65 72 20 33 |ers. Re|gister 3|
|00001ad0| 20 69 73 20 75 73 65 64 | 20 74 6f 20 69 64 65 6e | is used| to iden|
|00001ae0| 74 69 66 79 20 64 65 76 | 69 63 65 73 20 61 6e 64 |tify dev|ices and|
|00001af0| 20 74 6f 20 73 65 70 61 | 72 61 74 65 20 64 65 76 | to sepa|rate dev|
|00001b00| 69 63 65 73 20 77 68 69 | 63 68 20 6f 63 63 75 70 |ices whi|ch occup|
|00001b10| 79 20 74 68 65 20 73 61 | 6d 65 20 61 64 64 72 65 |y the sa|me addre|
|00001b20| 73 73 2c 20 61 73 20 64 | 69 73 63 75 73 73 65 64 |ss, as d|iscussed|
|00001b30| 20 69 6e 20 22 41 64 64 | 72 65 73 73 20 52 65 73 | in "Add|ress Res|
|00001b40| 6f 6c 75 74 69 6f 6e 22 | 20 62 65 6c 6f 77 2e 0d |olution"| below..|
|00001b50| 44 65 66 61 75 6c 74 20 | 61 64 64 72 65 73 73 65 |Default |addresse|
|00001b60| 73 20 61 6e 64 20 68 61 | 6e 64 6c 65 72 20 49 44 |s and ha|ndler ID|
|00001b70| 73 0d 45 61 63 68 20 41 | 44 42 20 64 65 76 69 63 |s.Each A|DB devic|
|00001b80| 65 20 69 64 65 6e 74 69 | 66 69 65 73 20 69 74 73 |e identi|fies its|
|00001b90| 20 73 6f 66 74 77 61 72 | 65 20 69 6e 74 65 72 66 | softwar|e interf|
|00001ba0| 61 63 65 20 77 69 74 68 | 20 74 77 6f 20 63 6f 6e |ace with| two con|
|00001bb0| 73 74 61 6e 74 73 3b 20 | 74 68 65 20 64 65 66 61 |stants; |the defa|
|00001bc0| 75 6c 74 20 61 64 64 72 | 65 73 73 20 61 6e 64 20 |ult addr|ess and |
|00001bd0| 74 68 65 20 68 61 6e 64 | 6c 65 72 20 49 44 2e 20 |the hand|ler ID. |
|00001be0| 20 54 68 69 73 20 70 61 | 69 72 20 75 6e 69 71 75 | This pa|ir uniqu|
|00001bf0| 65 6c 79 20 69 64 65 6e | 74 69 66 69 65 73 20 61 |ely iden|tifies a|
|00001c00| 20 64 65 76 69 63 65 27 | 73 20 73 6f 66 74 77 61 | device'|s softwa|
|00001c10| 72 65 20 69 6e 74 65 72 | 66 61 63 65 3b 20 74 68 |re inter|face; th|
|00001c20| 65 20 64 65 66 61 75 6c | 74 20 61 64 64 72 65 73 |e defaul|t addres|
|00001c30| 73 20 75 73 75 61 6c 6c | 79 20 73 70 65 63 69 66 |s usuall|y specif|
|00001c40| 69 65 73 20 61 20 64 65 | 76 69 63 65 27 73 20 67 |ies a de|vice's g|
|00001c50| 65 6e 65 72 61 6c 20 74 | 79 70 65 20 28 73 75 63 |eneral t|ype (suc|
|00001c60| 68 20 61 73 20 72 65 6c | 61 74 69 76 65 20 70 6f |h as rel|ative po|
|00001c70| 69 6e 74 69 6e 67 20 64 | 65 76 69 63 65 20 6f 72 |inting d|evice or|
|00001c80| 20 6b 65 79 62 6f 61 72 | 64 29 20 77 68 69 6c 65 | keyboar|d) while|
|00001c90| 20 74 68 65 20 68 61 6e | 64 6c 65 72 20 49 44 20 | the han|dler ID |
|00001ca0| 73 70 65 63 69 66 69 65 | 64 20 74 68 65 20 70 61 |specifie|d the pa|
|00001cb0| 72 74 69 63 75 6c 61 72 | 20 64 61 74 61 20 70 72 |rticular| data pr|
|00001cc0| 6f 74 6f 63 6f 6c 20 74 | 68 69 73 20 64 65 76 69 |otocol t|his devi|
|00001cd0| 63 65 20 75 73 65 73 20 | 66 6f 72 20 63 6f 6d 6d |ce uses |for comm|
|00001ce0| 75 6e 69 63 61 74 69 6f | 6e 2e 20 20 54 68 65 20 |unicatio|n. The |
|00001cf0| 64 65 66 61 75 6c 74 20 | 61 64 64 72 65 73 73 20 |default |address |
|00001d00| 63 61 74 65 67 6f 72 69 | 65 73 20 61 72 65 20 61 |categori|es are a|
|00001d10| 73 20 66 6f 6c 6c 6f 77 | 73 3a 0d 44 65 66 61 75 |s follow|s:.Defau|
|00001d20| 6c 74 20 41 64 64 72 65 | 73 73 09 0d 44 65 76 69 |lt Addre|ss..Devi|
|00001d30| 63 65 20 54 79 70 65 09 | 0d 31 09 53 65 63 75 72 |ce Type.|.1.Secur|
|00001d40| 69 74 79 20 26 20 44 6f | 6e 67 6c 65 73 09 0d 32 |ity & Do|ngles..2|
|00001d50| 09 4b 65 79 62 6f 61 72 | 64 73 09 0d 33 09 52 65 |.Keyboar|ds..3.Re|
|00001d60| 6c 61 74 69 76 65 20 70 | 6f 69 6e 74 69 6e 67 20 |lative p|ointing |
|00001d70| 64 65 76 69 63 65 73 20 | 28 6d 69 63 65 29 09 0d |devices |(mice)..|
|00001d80| 34 09 41 62 73 6f 6c 75 | 74 65 20 70 6f 69 6e 74 |4.Absolu|te point|
|00001d90| 69 6e 67 20 64 65 76 69 | 63 65 73 20 28 74 61 62 |ing devi|ces (tab|
|00001da0| 6c 65 74 73 29 09 0d 35 | 09 4c 6f 77 20 73 70 65 |lets)..5|.Low spe|
|00001db0| 65 64 20 64 61 74 61 20 | 74 72 61 6e 73 66 65 72 |ed data |transfer|
|00001dc0| 20 64 65 76 69 63 65 73 | 09 0d 36 09 52 65 73 65 | devices|..6.Rese|
|00001dd0| 72 76 65 64 20 28 50 6f | 77 65 72 42 6f 6f 6b 20 |rved (Po|werBook |
|00001de0| 44 75 6f 20 63 68 61 72 | 67 65 72 29 09 0d 37 09 |Duo char|ger)..7.|
|00001df0| 41 70 70 6c 69 61 6e 63 | 65 73 20 28 4d 69 73 63 |Applianc|es (Misc|
|00001e00| 65 6c 6c 61 6e 65 6f 75 | 73 20 63 61 74 63 68 2d |ellaneou|s catch-|
|00001e10| 61 6c 6c 29 09 0d 0d 54 | 61 62 6c 65 20 31 d0 44 |all)...T|able 1.D|
|00001e20| 65 66 61 75 6c 74 20 61 | 64 64 72 65 73 73 20 63 |efault a|ddress c|
|00001e30| 61 74 65 67 6f 72 69 65 | 73 0d 54 68 65 20 64 65 |ategorie|s.The de|
|00001e40| 66 61 75 6c 74 20 61 64 | 64 72 65 73 73 20 69 73 |fault ad|dress is|
|00001e50| 20 6f 6e 6c 79 20 61 20 | 67 75 69 64 65 3b 20 74 | only a |guide; t|
|00001e60| 68 65 72 65 27 73 20 6e | 6f 20 72 65 61 6c 20 72 |here's n|o real r|
|00001e70| 65 61 73 6f 6e 20 61 20 | 6d 6f 75 73 65 20 63 61 |eason a |mouse ca|
|00001e80| 6e 27 74 20 62 65 20 61 | 74 20 61 64 64 72 65 73 |n't be a|t addres|
|00001e90| 73 20 37 2c 20 62 75 74 | 20 64 65 66 61 75 6c 74 |s 7, but| default|
|00001ea0| 20 61 64 64 72 65 73 73 | 65 73 20 61 72 65 20 61 | address|es are a|
|00001eb0| 73 73 69 67 6e 65 64 20 | 6f 6e 20 61 20 63 61 74 |ssigned |on a cat|
|00001ec0| 65 67 6f 72 79 20 62 61 | 73 69 73 20 74 6f 20 74 |egory ba|sis to t|
|00001ed0| 72 79 20 74 6f 20 61 76 | 6f 69 64 20 74 68 65 20 |ry to av|oid the |
|00001ee0| 63 61 73 65 20 77 68 65 | 72 65 20 61 20 75 73 65 |case whe|re a use|
|00001ef0| 72 20 68 61 73 20 6d 6f | 72 65 20 74 68 61 6e 20 |r has mo|re than |
|00001f00| 6f 6e 65 20 64 65 76 69 | 63 65 20 61 74 20 61 20 |one devi|ce at a |
|00001f10| 70 61 72 74 69 63 75 6c | 61 72 20 61 64 64 72 65 |particul|ar addre|
|00001f20| 73 73 3b 20 62 79 20 70 | 75 74 74 69 6e 67 20 61 |ss; by p|utting a|
|00001f30| 6c 6c 20 74 68 65 20 72 | 65 6c 61 74 69 76 65 20 |ll the r|elative |
|00001f40| 64 65 76 69 63 65 73 20 | 61 74 20 61 64 64 72 65 |devices |at addre|
|00001f50| 73 73 20 33 2c 20 63 6f | 6c 6c 69 73 69 6f 6e 73 |ss 3, co|llisions|
|00001f60| 20 77 69 6c 6c 20 62 65 | 20 61 76 6f 69 64 65 64 | will be| avoided|
|00001f70| 20 61 74 20 61 64 64 72 | 65 73 73 20 33 20 66 6f | at addr|ess 3 fo|
|00001f80| 72 20 61 6c 6c 20 75 73 | 65 72 73 20 77 68 6f 20 |r all us|ers who |
|00001f90| 68 61 76 65 20 6f 6e 6c | 79 20 6f 6e 65 20 72 65 |have onl|y one re|
|00001fa0| 6c 61 74 69 76 65 20 70 | 6f 69 6e 74 69 6e 67 20 |lative p|ointing |
|00001fb0| 64 65 76 69 63 65 2e 20 | 20 57 68 69 6c 65 20 74 |device. | While t|
|00001fc0| 68 65 20 62 75 73 20 69 | 73 20 72 6f 62 75 73 74 |he bus i|s robust|
|00001fd0| 20 77 69 74 68 20 72 65 | 73 70 65 63 74 20 74 6f | with re|spect to|
|00001fe0| 20 73 65 70 61 72 61 74 | 69 6e 67 20 64 65 76 69 | separat|ing devi|
|00001ff0| 63 65 73 20 77 68 69 63 | 68 20 61 72 65 20 61 74 |ces whic|h are at|
|00002000| 20 74 68 65 20 73 61 6d | 65 20 61 64 64 72 65 73 | the sam|e addres|
|00002010| 73 2c 20 74 68 65 20 41 | 44 42 53 20 64 72 69 76 |s, the A|DBS driv|
|00002020| 65 72 20 6c 6f 61 64 69 | 6e 67 20 6d 65 63 68 61 |er loadi|ng mecha|
|00002030| 6e 69 73 6d 2c 20 77 68 | 69 63 68 20 69 73 20 64 |nism, wh|ich is d|
|00002040| 65 73 63 72 69 62 65 64 | 20 62 6c 6f 77 2c 20 6d |escribed| blow, m|
|00002050| 61 64 65 20 69 74 20 75 | 73 65 66 75 6c 20 74 6f |ade it u|seful to|
|00002060| 20 74 72 79 20 74 6f 20 | 61 76 6f 69 64 20 68 61 | try to |avoid ha|
|00002070| 76 69 6e 67 20 73 65 76 | 65 72 61 6c 20 64 69 73 |ving sev|eral dis|
|00002080| 73 69 6d 69 6c 61 72 20 | 64 65 76 69 63 65 73 20 |similar |devices |
|00002090| 61 74 20 74 68 65 20 73 | 61 6d 65 20 61 64 64 72 |at the s|ame addr|
|000020a0| 65 73 73 2e 0d 44 65 66 | 61 75 6c 74 20 61 64 64 |ess..Def|ault add|
|000020b0| 72 65 73 73 65 73 20 61 | 6e 64 20 68 61 6e 64 6c |resses a|nd handl|
|000020c0| 65 72 20 49 44 73 20 61 | 72 65 20 61 73 73 69 67 |er IDs a|re assig|
|000020d0| 6e 65 64 20 62 79 20 41 | 70 70 6c 65 20 53 6f 66 |ned by A|pple Sof|
|000020e0| 74 77 61 72 65 20 4c 69 | 63 65 6e 73 69 6e 67 20 |tware Li|censing |
|000020f0| 77 68 65 6e 20 61 6e 20 | 41 44 42 20 6c 69 63 65 |when an |ADB lice|
|00002100| 6e 73 65 20 63 6f 6e 74 | 72 61 63 74 20 69 73 20 |nse cont|ract is |
|00002110| 63 6f 6d 70 6c 65 74 65 | 64 2e 20 20 44 65 66 61 |complete|d. Defa|
|00002120| 75 6c 74 20 61 64 64 72 | 65 73 73 20 30 20 69 73 |ult addr|ess 0 is|
|00002130| 20 75 73 65 64 20 62 79 | 20 74 68 65 20 41 44 42 | used by| the ADB|
|00002140| 20 68 6f 73 74 3b 20 61 | 64 64 72 65 73 73 65 73 | host; a|ddresses|
|00002150| 20 38 20 74 68 72 6f 75 | 67 68 20 31 35 20 61 72 | 8 throu|gh 15 ar|
|00002160| 65 20 75 73 65 64 20 61 | 73 20 6c 6f 63 61 74 69 |e used a|s locati|
|00002170| 6f 6e 73 20 74 6f 20 64 | 79 6e 61 6d 69 63 61 6c |ons to d|ynamical|
|00002180| 6c 79 20 6c 6f 63 61 74 | 65 20 64 65 76 69 63 65 |ly locat|e device|
|00002190| 73 20 61 74 2e 0d 53 6f | 6d 65 20 64 65 76 69 63 |s at..So|me devic|
|000021a0| 65 73 20 73 75 70 70 6f | 72 74 20 6d 6f 72 65 20 |es suppo|rt more |
|000021b0| 74 68 61 6e 20 6f 6e 65 | 20 64 61 74 61 20 70 72 |than one| data pr|
|000021c0| 6f 74 6f 63 6f 6c 2e 20 | 20 41 6e 20 65 78 61 6d |otocol. | An exam|
|000021d0| 70 6c 65 20 69 73 20 74 | 68 65 20 65 78 74 65 6e |ple is t|he exten|
|000021e0| 64 65 64 20 6b 65 79 62 | 6f 61 72 64 2c 20 77 68 |ded keyb|oard, wh|
|000021f0| 69 63 68 20 63 61 6e 20 | 62 65 20 61 73 6b 65 64 |ich can |be asked|
|00002200| 20 74 6f 20 73 65 6e 64 | 20 73 65 70 61 72 61 74 | to send| separat|
|00002210| 65 20 6b 65 79 20 63 6f | 64 65 73 20 66 6f 72 20 |e key co|des for |
|00002220| 74 68 65 20 6c 65 66 74 | 20 26 20 72 69 67 68 74 |the left| & right|
|00002230| 20 73 68 69 66 74 20 6b | 65 79 73 2e 20 20 54 68 | shift k|eys. Th|
|00002240| 69 73 20 63 68 61 6e 67 | 65 20 69 73 20 61 63 63 |is chang|e is acc|
|00002250| 6f 6d 70 6c 69 73 68 65 | 64 20 62 79 20 63 68 61 |omplishe|d by cha|
|00002260| 6e 67 69 6e 67 20 69 74 | 73 20 68 61 6e 64 6c 65 |nging it|s handle|
|00002270| 72 20 49 44 20 74 6f 20 | 33 3b 20 74 68 65 20 6e |r ID to |3; the n|
|00002280| 65 77 20 68 61 6e 64 6c | 65 72 20 49 44 20 72 65 |ew handl|er ID re|
|00002290| 66 6c 65 63 74 73 20 74 | 68 65 20 6e 65 77 20 64 |flects t|he new d|
|000022a0| 61 74 61 20 70 72 6f 74 | 6f 63 6f 6c 2e 20 20 49 |ata prot|ocol. I|
|000022b0| 66 20 79 6f 75 72 20 64 | 65 76 69 63 65 20 72 65 |f your d|evice re|
|000022c0| 63 65 69 76 65 73 20 61 | 20 72 65 71 75 65 73 74 |ceives a| request|
|000022d0| 20 74 6f 20 63 68 61 6e | 67 65 20 68 61 6e 64 6c | to chan|ge handl|
|000022e0| 65 72 20 49 44 73 20 28 | 76 69 61 20 61 20 6c 69 |er IDs (|via a li|
|000022f0| 73 74 65 6e 20 72 65 67 | 69 73 74 65 72 20 33 20 |sten reg|ister 3 |
|00002300| 63 6f 6d 6d 61 6e 64 29 | 2c 20 69 74 20 73 68 6f |command)|, it sho|
|00002310| 75 6c 64 20 6f 6e 6c 79 | 20 6f 62 65 79 20 74 68 |uld only| obey th|
|00002320| 65 20 72 65 71 75 65 73 | 74 20 69 66 20 69 74 20 |e reques|t if it |
|00002330| 6b 6e 6f 77 73 20 68 6f | 77 20 74 6f 20 73 70 65 |knows ho|w to spe|
|00002340| 61 6b 20 74 68 65 20 70 | 72 6f 74 6f 63 6f 6c 20 |ak the p|rotocol |
|00002350| 73 70 65 63 69 66 69 65 | 64 20 62 79 20 74 68 65 |specifie|d by the|
|00002360| 20 6e 65 77 20 68 61 6e | 64 6c 65 72 20 49 44 2e | new han|dler ID.|
|00002370| 20 20 46 6f 72 20 65 78 | 61 6d 70 6c 65 2c 20 74 | For ex|ample, t|
|00002380| 68 65 20 65 78 74 65 6e | 64 65 64 20 6b 65 79 62 |he exten|ded keyb|
|00002390| 6f 61 72 64 2c 20 77 68 | 65 6e 20 72 65 63 65 69 |oard, wh|en recei|
|000023a0| 76 69 6e 67 20 61 20 72 | 65 71 75 65 73 74 20 74 |ving a r|equest t|
|000023b0| 6f 20 63 68 61 6e 67 65 | 20 68 61 6e 64 6c 65 72 |o change| handler|
|000023c0| 20 49 44 73 2c 20 73 68 | 6f 75 6c 64 20 61 63 63 | IDs, sh|ould acc|
|000023d0| 65 70 74 20 74 68 65 20 | 63 68 61 6e 67 65 20 69 |ept the |change i|
|000023e0| 66 20 69 74 20 69 73 20 | 67 6f 69 6e 67 20 74 6f |f it is |going to|
|000023f0| 20 49 44 20 33 20 6f 72 | 20 73 6f 6d 65 20 6f 74 | ID 3 or| some ot|
|00002400| 68 65 72 20 49 44 20 69 | 74 20 6b 6e 6f 77 73 20 |her ID i|t knows |
|00002410| 61 62 6f 75 74 2c 20 61 | 6e 64 20 73 68 6f 75 6c |about, a|nd shoul|
|00002420| 64 20 74 68 65 72 65 61 | 66 74 65 72 20 72 65 70 |d therea|fter rep|
|00002430| 6f 72 74 20 74 68 61 74 | 20 49 44 20 61 73 20 69 |ort that| ID as i|
|00002440| 74 73 20 6f 77 6e 20 69 | 6e 20 72 65 73 70 6f 6e |ts own i|n respon|
|00002450| 73 65 20 74 6f 20 74 61 | 6c 6b 20 72 65 67 69 73 |se to ta|lk regis|
|00002460| 74 65 72 20 33 20 63 6f | 6d 6d 61 6e 64 73 3b 20 |ter 3 co|mmands; |
|00002470| 69 66 20 69 74 20 72 65 | 63 65 69 76 65 73 20 61 |if it re|ceives a|
|00002480| 20 72 65 71 75 65 73 74 | 20 74 6f 20 63 68 61 6e | request| to chan|
|00002490| 67 65 20 74 6f 20 68 61 | 6e 64 6c 65 72 20 49 44 |ge to ha|ndler ID|
|000024a0| 20 24 35 32 2c 20 69 74 | 20 73 68 6f 75 6c 64 20 | $52, it| should |
|000024b0| 69 67 6e 6f 72 65 20 69 | 74 2c 20 61 73 20 69 74 |ignore i|t, as it|
|000024c0| 20 64 6f 65 73 20 6e 6f | 74 20 6b 6e 6f 77 20 77 | does no|t know w|
|000024d0| 68 61 74 20 68 61 6e 64 | 6c 65 72 20 49 44 20 24 |hat hand|ler ID $|
|000024e0| 35 32 20 69 6d 70 6c 69 | 65 73 2c 20 61 6e 64 20 |52 impli|es, and |
|000024f0| 63 6f 6e 74 69 6e 75 65 | 20 74 6f 20 72 65 70 6f |continue| to repo|
|00002500| 72 74 20 69 74 73 20 6f | 72 69 67 69 6e 61 6c 20 |rt its o|riginal |
|00002510| 68 61 6e 64 6c 65 72 20 | 49 44 20 69 6e 20 72 65 |handler |ID in re|
|00002520| 73 70 6f 6e 73 65 20 74 | 6f 20 74 61 6c 6b 20 72 |sponse t|o talk r|
|00002530| 65 67 69 73 74 65 72 20 | 33 20 63 6f 6d 6d 61 6e |egister |3 comman|
|00002540| 64 73 2e 0d 41 20 73 70 | 65 63 69 61 6c 20 63 61 |ds..A sp|ecial ca|
|00002550| 73 65 20 69 73 20 64 65 | 76 69 63 65 73 20 77 68 |se is de|vices wh|
|00002560| 69 63 68 20 65 6d 75 6c | 61 74 65 20 41 70 70 6c |ich emul|ate Appl|
|00002570| 65 20 64 65 76 69 63 65 | 20 70 72 6f 74 6f 63 6f |e device| protoco|
|00002580| 6c 73 2e 20 20 46 6f 72 | 20 65 78 61 6d 70 6c 65 |ls. For| example|
|00002590| 2c 20 79 6f 75 20 6d 61 | 79 20 62 65 20 63 6f 6e |, you ma|y be con|
|000025a0| 73 74 72 75 63 74 69 6e | 67 20 61 20 31 37 2d 62 |structin|g a 17-b|
|000025b0| 75 74 74 6f 6e 20 6d 6f | 75 73 65 20 66 6f 72 20 |utton mo|use for |
|000025c0| 75 73 65 20 62 79 20 73 | 70 65 63 69 61 6c 6c 79 |use by s|pecially|
|000025d0| 20 74 72 61 69 6e 65 64 | 20 73 71 75 69 64 3b 20 | trained| squid; |
|000025e0| 69 74 20 68 61 73 20 61 | 20 73 70 65 63 69 61 6c |it has a| special|
|000025f0| 20 73 6f 66 74 77 61 72 | 65 20 70 72 6f 74 6f 63 | softwar|e protoc|
|00002600| 6f 6c 20 74 6f 20 61 6c | 6c 6f 77 20 69 74 20 74 |ol to al|low it t|
|00002610| 6f 20 63 6f 6e 76 65 79 | 20 74 68 65 20 73 74 61 |o convey| the sta|
|00002620| 74 65 20 6f 66 20 61 6c | 6c 20 31 37 20 6d 6f 75 |te of al|l 17 mou|
|00002630| 73 65 20 62 75 74 74 6f | 6e 73 2e 20 20 48 6f 77 |se butto|ns. How|
|00002640| 65 76 65 72 2c 20 79 6f | 75 20 6d 61 79 20 77 69 |ever, yo|u may wi|
|00002650| 73 68 20 74 6f 20 65 6d | 75 6c 61 74 65 20 74 68 |sh to em|ulate th|
|00002660| 65 20 41 70 70 6c 65 20 | 6d 6f 75 73 65 20 70 72 |e Apple |mouse pr|
|00002670| 6f 74 6f 63 6f 6c 20 73 | 6f 20 79 6f 75 72 20 64 |otocol s|o your d|
|00002680| 65 76 69 63 65 20 63 61 | 6e 20 62 65 20 75 73 65 |evice ca|n be use|
|00002690| 64 20 61 73 20 61 20 6f | 6e 65 20 62 75 74 74 6f |d as a o|ne butto|
|000026a0| 6e 20 6d 6f 75 73 65 20 | 6f 6e 20 6d 61 63 68 69 |n mouse |on machi|
|000026b0| 6e 65 73 20 77 68 69 63 | 68 20 64 6f 6e 27 74 20 |nes whic|h don't |
|000026c0| 68 61 76 65 20 79 6f 75 | 72 20 64 72 69 76 65 72 |have you|r driver|
|000026d0| 20 73 6f 66 74 77 61 72 | 65 20 69 6e 73 74 61 6c | softwar|e instal|
|000026e0| 6c 65 64 2e 20 20 44 75 | 65 20 74 6f 20 74 68 65 |led. Du|e to the|
|000026f0| 20 73 6f 66 74 77 61 72 | 65 20 64 65 73 69 67 6e | softwar|e design|
|00002700| 20 6f 66 20 74 68 65 20 | 41 44 42 20 6d 61 6e 61 | of the |ADB mana|
|00002710| 67 65 72 2c 20 69 66 20 | 79 6f 75 72 20 64 65 76 |ger, if |your dev|
|00002720| 69 63 65 20 69 73 20 61 | 74 20 64 65 66 61 75 6c |ice is a|t defaul|
|00002730| 74 20 61 64 64 72 65 73 | 73 20 33 2c 20 69 74 20 |t addres|s 3, it |
|00002740| 77 69 6c 6c 20 68 61 76 | 65 20 74 68 65 20 64 65 |will hav|e the de|
|00002750| 66 61 75 6c 74 20 6d 6f | 75 73 65 20 64 72 69 76 |fault mo|use driv|
|00002760| 65 72 20 69 6e 73 74 61 | 6c 6c 65 64 20 61 73 20 |er insta|lled as |
|00002770| 69 74 73 20 64 72 69 76 | 65 72 20 61 74 20 73 74 |its driv|er at st|
|00002780| 61 72 74 75 70 20 72 65 | 67 61 72 64 6c 65 73 73 |artup re|gardless|
|00002790| 20 6f 66 20 69 74 73 20 | 68 61 6e 64 6c 65 72 20 | of its |handler |
|000027a0| 49 44 3b 20 77 68 65 6e | 20 79 6f 75 72 20 73 6f |ID; when| your so|
|000027b0| 66 74 77 61 72 65 20 6c | 6f 61 64 73 2c 20 79 6f |ftware l|oads, yo|
|000027c0| 75 20 63 61 6e 20 69 6e | 73 74 61 6c 6c 20 61 20 |u can in|stall a |
|000027d0| 6e 65 77 20 64 72 69 76 | 65 72 20 66 6f 72 20 79 |new driv|er for y|
|000027e0| 6f 75 72 20 64 65 76 69 | 63 65 20 61 6e 64 20 74 |our devi|ce and t|
|000027f0| 65 6c 6c 20 69 74 20 74 | 6f 20 62 65 67 69 6e 20 |ell it t|o begin |
|00002800| 74 61 6c 6b 69 6e 67 20 | 74 68 65 20 31 37 20 62 |talking |the 17 b|
|00002810| 75 74 74 6f 6e 20 70 72 | 6f 74 6f 63 6f 6c 2e 20 |utton pr|otocol. |
|00002820| 20 59 6f 75 20 68 61 76 | 65 20 74 77 6f 20 6f 70 | You hav|e two op|
|00002830| 74 69 6f 6e 73 3a 20 79 | 6f 75 20 63 61 6e 20 68 |tions: y|ou can h|
|00002840| 61 76 65 20 79 6f 75 72 | 20 64 65 76 69 63 65 20 |ave your| device |
|00002850| 70 6f 77 65 72 20 75 70 | 20 77 69 74 68 20 74 68 |power up| with th|
|00002860| 65 20 64 65 66 61 75 6c | 74 20 41 70 70 6c 65 20 |e defaul|t Apple |
|00002870| 6d 6f 75 73 65 20 68 61 | 6e 64 6c 65 72 20 49 44 |mouse ha|ndler ID|
|00002880| 20 28 24 30 31 29 20 6f | 72 20 77 69 74 68 20 79 | ($01) o|r with y|
|00002890| 6f 75 72 20 6f 77 6e 20 | 68 61 6e 64 6c 65 72 20 |our own |handler |
|000028a0| 49 44 20 61 73 20 61 73 | 73 69 67 6e 65 64 20 62 |ID as as|signed b|
|000028b0| 79 20 41 70 70 6c 65 20 | 53 6f 66 74 77 61 72 65 |y Apple |Software|
|000028c0| 20 4c 69 63 65 6e 73 69 | 6e 67 2e 20 20 49 66 20 | Licensi|ng. If |
|000028d0| 79 6f 75 20 70 6f 77 65 | 72 20 75 70 20 77 69 74 |you powe|r up wit|
|000028e0| 68 20 74 68 65 20 24 30 | 31 20 68 61 6e 64 6c 65 |h the $0|1 handle|
|000028f0| 72 20 49 44 2c 20 79 6f | 75 72 20 73 6f 66 74 77 |r ID, yo|ur softw|
|00002900| 61 72 65 20 77 69 6c 6c | 20 68 61 76 65 20 74 6f |are will| have to|
|00002910| 20 6c 6f 63 61 74 65 20 | 79 6f 75 72 20 64 65 76 | locate |your dev|
|00002920| 69 63 65 20 62 79 20 74 | 72 79 69 6e 67 20 74 6f |ice by t|rying to|
|00002930| 20 63 68 61 6e 67 65 20 | 74 68 65 20 68 61 6e 64 | change |the hand|
|00002940| 6c 65 72 20 49 44 20 6f | 66 20 65 61 63 68 20 64 |ler ID o|f each d|
|00002950| 65 76 69 63 65 20 77 68 | 69 63 68 20 73 74 61 72 |evice wh|ich star|
|00002960| 74 65 64 20 6f 75 74 20 | 61 74 20 61 64 64 72 65 |ted out |at addre|
|00002970| 73 73 20 33 20 74 6f 20 | 79 6f 75 20 63 75 73 74 |ss 3 to |you cust|
|00002980| 6f 6d 20 49 44 2c 20 74 | 68 65 6e 20 72 65 61 64 |om ID, t|hen read|
|00002990| 69 6e 67 20 74 68 65 20 | 68 61 6e 64 6c 65 72 20 |ing the |handler |
|000029a0| 49 44 20 6f 66 20 74 68 | 61 74 20 64 65 76 69 63 |ID of th|at devic|
|000029b0| 65 20 62 61 63 6b 3b 20 | 69 66 20 74 68 65 20 63 |e back; |if the c|
|000029c0| 68 61 6e 67 65 20 73 74 | 75 63 6b 2c 20 74 68 65 |hange st|uck, the|
|000029d0| 6e 20 79 6f 75 20 6b 6e | 6f 77 20 79 6f 75 27 72 |n you kn|ow you'r|
|000029e0| 65 20 74 61 6c 6b 69 6e | 67 20 74 6f 20 79 6f 75 |e talkin|g to you|
|000029f0| 72 20 64 65 76 69 63 65 | 2c 20 61 6e 64 20 63 61 |r device|, and ca|
|00002a00| 6e 20 69 6e 73 74 61 6c | 6c 20 79 6f 75 72 20 63 |n instal|l your c|
|00002a10| 75 73 74 6f 6d 20 64 72 | 69 76 65 72 2e 20 20 49 |ustom dr|iver. I|
|00002a20| 6e 20 61 64 64 69 74 69 | 6f 6e 2c 20 74 68 65 20 |n additi|on, the |
|00002a30| 63 6f 6d 6d 61 6e 64 20 | 74 6f 20 63 68 61 6e 67 |command |to chang|
|00002a40| 65 20 68 61 6e 64 6c 65 | 72 20 49 44 73 20 74 6f |e handle|r IDs to|
|00002a50| 6c 64 20 74 68 65 20 64 | 65 76 69 63 65 20 74 6f |ld the d|evice to|
|00002a60| 20 62 65 67 69 6e 20 75 | 73 69 6e 67 20 79 6f 75 | begin u|sing you|
|00002a70| 72 20 63 75 73 74 6f 6d | 20 70 72 6f 74 6f 63 6f |r custom| protoco|
|00002a80| 6c 2e 20 20 41 6c 74 65 | 72 6e 61 74 69 76 65 6c |l. Alte|rnativel|
|00002a90| 79 2c 20 79 6f 75 20 63 | 6f 75 6c 64 20 68 61 76 |y, you c|ould hav|
|00002aa0| 65 20 79 6f 75 72 20 64 | 65 76 69 63 65 20 70 6f |e your d|evice po|
|00002ab0| 77 65 72 20 75 70 20 77 | 69 74 68 20 79 6f 75 72 |wer up w|ith your|
|00002ac0| 20 63 75 73 74 6f 6d 20 | 68 61 6e 64 6c 65 72 20 | custom |handler |
|00002ad0| 49 44 3b 20 74 68 69 73 | 20 77 6f 75 6c 64 20 6d |ID; this| would m|
|00002ae0| 61 6b 65 20 69 64 65 6e | 74 69 66 79 69 6e 67 20 |ake iden|tifying |
|00002af0| 79 6f 75 72 20 64 65 76 | 69 63 65 20 73 6f 6d 65 |your dev|ice some|
|00002b00| 77 68 61 74 20 65 61 73 | 69 65 72 2c 20 61 73 20 |what eas|ier, as |
|00002b10| 79 6f 75 72 20 64 65 76 | 69 63 65 20 63 6f 75 6c |your dev|ice coul|
|00002b20| 64 20 62 65 20 69 64 65 | 6e 74 69 66 69 65 64 20 |d be ide|ntified |
|00002b30| 62 79 20 69 74 73 20 73 | 70 65 63 69 61 6c 20 68 |by its s|pecial h|
|00002b40| 61 6e 64 6c 65 72 20 49 | 44 3b 20 79 6f 75 20 77 |andler I|D; you w|
|00002b50| 6f 75 6c 64 20 68 61 76 | 65 20 74 6f 20 75 73 65 |ould hav|e to use|
|00002b60| 20 73 6f 6d 65 20 73 70 | 65 63 69 61 6c 20 63 6f | some sp|ecial co|
|00002b70| 6d 6d 61 6e 64 20 74 6f | 20 74 65 6c 6c 20 74 68 |mmand to| tell th|
|00002b80| 65 20 64 65 76 69 63 65 | 20 74 68 61 74 20 79 6f |e device| that yo|
|00002b90| 75 20 68 61 76 65 20 69 | 6e 73 74 61 6c 6c 65 64 |u have i|nstalled|
|00002ba0| 20 74 68 65 20 6e 65 77 | 20 64 72 69 76 65 72 20 | the new| driver |
|00002bb0| 61 6e 64 20 74 68 61 74 | 20 69 74 20 63 61 6e 20 |and that| it can |
|00002bc0| 62 65 67 69 6e 20 73 70 | 65 61 6b 69 6e 67 20 74 |begin sp|eaking t|
|00002bd0| 68 65 20 63 75 73 74 6f | 6d 20 70 72 6f 74 6f 63 |he custo|m protoc|
|00002be0| 6f 6c 2e 20 20 46 6f 72 | 20 65 78 61 6d 70 6c 65 |ol. For| example|
|00002bf0| 2c 20 79 6f 75 20 63 6f | 75 6c 64 20 75 73 65 20 |, you co|uld use |
|00002c00| 61 20 74 61 6c 6b 20 72 | 65 67 69 73 74 65 72 20 |a talk r|egister |
|00002c10| 31 20 74 6f 20 74 65 6c | 6c 20 74 68 65 20 64 65 |1 to tel|l the de|
|00002c20| 76 69 63 65 20 74 68 61 | 74 20 79 6f 75 27 72 65 |vice tha|t you're|
|00002c30| 20 72 65 61 64 79 20 66 | 6f 72 20 74 68 65 20 31 | ready f|or the 1|
|00002c40| 37 20 62 75 74 74 6f 6e | 20 64 61 74 61 20 70 72 |7 button| data pr|
|00002c50| 6f 74 6f 63 6f 6c 2e 20 | 20 42 6f 74 68 20 61 70 |otocol. | Both ap|
|00002c60| 70 72 6f 61 63 68 65 73 | 20 77 6f 72 6b 20 77 65 |proaches| work we|
|00002c70| 6c 6c 2c 20 62 75 74 20 | 74 68 65 20 66 69 72 73 |ll, but |the firs|
|00002c80| 74 20 6f 6e 65 20 69 73 | 20 72 65 63 6f 6d 6d 65 |t one is| recomme|
|00002c90| 6e 64 65 64 3b 20 69 74 | 20 65 6e 73 75 72 65 73 |nded; it| ensures|
|00002ca0| 20 74 68 61 74 20 74 68 | 65 20 63 75 72 72 65 6e | that th|e curren|
|00002cb0| 74 20 70 72 6f 74 6f 63 | 6f 6c 20 63 61 6e 20 61 |t protoc|ol can a|
|00002cc0| 6c 77 61 79 73 20 62 65 | 20 64 65 74 65 72 6d 69 |lways be| determi|
|00002cd0| 6e 65 64 20 62 79 20 6c | 6f 6f 6b 69 6e 67 20 61 |ned by l|ooking a|
|00002ce0| 74 20 74 68 65 20 63 75 | 72 72 65 6e 74 20 68 61 |t the cu|rrent ha|
|00002cf0| 6e 64 6c 65 72 20 49 44 | 3b 20 68 6f 77 65 76 65 |ndler ID|; howeve|
|00002d00| 72 2c 20 69 74 20 72 65 | 6c 69 65 73 20 6f 6e 20 |r, it re|lies on |
|00002d10| 61 6c 6c 20 64 65 76 69 | 63 65 73 20 61 74 20 74 |all devi|ces at t|
|00002d20| 68 61 74 20 64 65 66 61 | 75 6c 74 20 61 64 64 72 |hat defa|ult addr|
|00002d30| 65 73 73 20 68 61 6e 64 | 6c 69 6e 67 20 63 6f 6d |ess hand|ling com|
|00002d40| 6d 61 6e 64 73 20 61 73 | 6b 69 6e 67 20 74 68 65 |mands as|king the|
|00002d50| 6d 20 74 6f 20 63 68 61 | 6e 67 65 20 74 6f 20 61 |m to cha|nge to a|
|00002d60| 20 64 69 66 66 65 72 65 | 6e 74 20 68 61 6e 64 6c | differe|nt handl|
|00002d70| 65 72 20 49 44 20 70 72 | 6f 70 65 72 6c 79 2c 20 |er ID pr|operly, |
|00002d80| 61 73 20 61 20 64 65 76 | 69 63 65 20 77 68 69 63 |as a dev|ice whic|
|00002d90| 68 20 69 6e 63 6f 72 72 | 65 63 74 6c 79 20 63 68 |h incorr|ectly ch|
|00002da0| 61 6e 67 65 73 20 69 74 | 73 20 68 61 6e 64 6c 65 |anges it|s handle|
|00002db0| 72 20 49 44 20 74 6f 20 | 79 6f 75 72 20 61 73 73 |r ID to |your ass|
|00002dc0| 69 67 6e 65 64 20 49 44 | 20 77 6f 75 6c 64 20 66 |igned ID| would f|
|00002dd0| 6f 6f 6c 20 79 6f 75 20 | 69 6e 74 6f 20 74 68 69 |ool you |into thi|
|00002de0| 6e 6b 69 6e 67 20 69 74 | 20 77 61 73 20 79 6f 75 |nking it| was you|
|00002df0| 72 20 64 65 76 69 63 65 | 2e 20 20 54 68 69 73 20 |r device|. This |
|00002e00| 64 6f 65 73 6e 27 74 20 | 73 65 65 6d 20 74 6f 20 |doesn't |seem to |
|00002e10| 62 65 20 61 20 6c 61 72 | 67 65 20 70 72 6f 62 6c |be a lar|ge probl|
|00002e20| 65 6d 2c 20 62 75 74 20 | 74 68 65 72 65 20 63 6f |em, but |there co|
|00002e30| 75 6c 64 20 62 65 20 73 | 6f 6d 65 20 6f 62 73 63 |uld be s|ome obsc|
|00002e40| 75 72 65 20 64 65 76 69 | 63 65 73 20 77 69 74 68 |ure devi|ces with|
|00002e50| 20 74 68 69 73 20 62 75 | 67 2e 0d 41 64 64 72 65 | this bu|g..Addre|
|00002e60| 73 73 20 52 65 73 6f 6c | 75 74 69 6f 6e 0d 41 64 |ss Resol|ution.Ad|
|00002e70| 64 72 65 73 73 20 72 65 | 73 6f 6c 75 74 69 6f 6e |dress re|solution|
|00002e80| 20 69 73 20 74 68 65 20 | 70 72 6f 63 65 73 73 20 | is the |process |
|00002e90| 74 68 65 20 41 44 42 20 | 6d 61 6e 61 67 65 72 20 |the ADB |manager |
|00002ea0| 75 73 65 73 20 74 6f 20 | 73 65 70 61 72 61 74 65 |uses to |separate|
|00002eb0| 20 64 65 76 69 63 65 73 | 20 77 68 69 63 68 20 73 | devices| which s|
|00002ec0| 68 61 72 65 20 74 68 65 | 20 73 61 6d 65 20 64 65 |hare the| same de|
|00002ed0| 66 61 75 6c 74 20 61 64 | 64 72 65 73 73 2c 20 73 |fault ad|dress, s|
|00002ee0| 6f 20 74 68 65 79 20 70 | 6f 77 65 72 20 75 70 20 |o they p|ower up |
|00002ef0| 73 68 61 64 6f 77 69 6e | 67 20 65 61 63 68 20 6f |shadowin|g each o|
|00002f00| 74 68 65 72 20 61 74 20 | 61 20 70 61 72 74 69 63 |ther at |a partic|
|00002f10| 75 6c 61 72 20 61 64 64 | 72 65 73 73 2e 20 20 49 |ular add|ress. I|
|00002f20| 74 20 72 65 6c 69 65 73 | 20 6f 6e 20 64 65 76 69 |t relies| on devi|
|00002f30| 63 65 73 20 75 73 69 6e | 67 20 63 6f 6c 6c 69 73 |ces usin|g collis|
|00002f40| 69 6f 6e 20 64 65 74 65 | 63 74 69 6f 6e 20 74 6f |ion dete|ction to|
|00002f50| 20 64 65 74 65 72 6d 69 | 6e 65 20 77 68 65 6e 20 | determi|ne when |
|00002f60| 74 68 65 72 65 20 69 73 | 20 6d 6f 72 65 20 74 68 |there is| more th|
|00002f70| 61 6e 20 6f 6e 65 20 64 | 65 76 69 63 65 20 61 74 |an one d|evice at|
|00002f80| 20 61 20 70 61 72 74 69 | 63 75 6c 61 72 20 61 64 | a parti|cular ad|
|00002f90| 64 72 65 73 73 2e 0d 41 | 6e 20 41 44 42 20 64 65 |dress..A|n ADB de|
|00002fa0| 76 69 63 65 27 73 20 72 | 65 67 69 73 74 65 72 20 |vice's r|egister |
|00002fb0| 33 20 69 73 20 32 20 62 | 79 74 65 73 20 6c 6f 6e |3 is 2 b|ytes lon|
|00002fc0| 67 20 61 6e 64 20 69 6e | 63 6c 75 64 65 73 20 34 |g and in|cludes 4|
|00002fd0| 20 62 69 74 73 20 69 6e | 20 77 68 69 63 68 20 74 | bits in| which t|
|00002fe0| 68 65 20 61 64 64 72 65 | 73 73 20 69 73 20 73 74 |he addre|ss is st|
|00002ff0| 6f 72 65 64 2e 20 20 57 | 68 65 6e 20 74 68 65 20 |ored. W|hen the |
|00003000| 64 65 76 69 63 65 20 72 | 65 63 65 69 76 65 73 20 |device r|eceives |
|00003010| 61 20 6c 69 73 74 65 6e | 20 72 65 67 69 73 74 65 |a listen| registe|
|00003020| 72 20 33 20 63 6f 6d 6d | 61 6e 64 2c 20 69 74 20 |r 3 comm|and, it |
|00003030| 73 68 6f 75 6c 64 20 74 | 61 6b 65 20 69 74 73 20 |should t|ake its |
|00003040| 61 64 64 72 65 73 73 20 | 66 72 6f 6d 20 74 68 69 |address |from thi|
|00003050| 73 20 34 20 62 69 74 20 | 66 69 65 6c 64 2e 20 20 |s 4 bit |field. |
|00003060| 57 68 65 6e 20 69 74 20 | 72 65 63 65 69 76 65 73 |When it |receives|
|00003070| 20 61 20 74 61 6c 6b 20 | 72 65 67 69 73 74 65 72 | a talk |register|
|00003080| 20 33 20 63 6f 6d 6d 61 | 6e 64 2c 20 69 74 20 77 | 3 comma|nd, it w|
|00003090| 6f 75 6c 64 20 62 65 20 | 72 65 64 75 6e 64 61 6e |ould be |redundan|
|000030a0| 74 20 74 6f 20 70 75 74 | 20 74 68 65 20 64 65 76 |t to put| the dev|
|000030b0| 69 63 65 27 73 20 61 64 | 64 72 65 73 73 20 69 6e |ice's ad|dress in|
|000030c0| 20 74 68 61 74 20 66 69 | 65 6c 64 3b 20 74 68 65 | that fi|eld; the|
|000030d0| 20 64 65 76 69 63 65 27 | 73 20 61 64 64 72 65 73 | device'|s addres|
|000030e0| 73 20 69 73 20 61 6c 72 | 65 61 64 79 20 75 6e 69 |s is alr|eady uni|
|000030f0| 71 75 65 6c 79 20 64 65 | 74 65 72 6d 69 6e 65 64 |quely de|termined|
|00003100| 20 62 79 20 74 68 65 20 | 66 61 63 74 20 74 68 61 | by the |fact tha|
|00003110| 74 20 74 68 65 20 64 65 | 76 69 63 65 20 69 73 20 |t the de|vice is |
|00003120| 72 65 73 70 6f 6e 64 69 | 6e 67 20 74 6f 20 74 68 |respondi|ng to th|
|00003130| 65 20 74 61 6c 6b 20 72 | 65 67 69 73 74 65 72 20 |e talk r|egister |
|00003140| 33 20 63 6f 6d 6d 61 6e | 64 2c 20 77 68 69 63 68 |3 comman|d, which|
|00003150| 20 77 61 73 20 73 65 6e | 74 20 74 6f 20 61 20 73 | was sen|t to a s|
|00003160| 70 65 63 69 66 69 63 20 | 61 64 64 72 65 73 73 2e |pecific |address.|
|00003170| 20 20 49 6e 73 74 65 61 | 64 2c 20 61 20 72 61 6e | Instea|d, a ran|
|00003180| 64 6f 6d 20 34 2d 62 69 | 74 20 76 61 6c 75 65 20 |dom 4-bi|t value |
|00003190| 73 68 6f 75 6c 64 20 62 | 65 20 72 65 74 75 72 6e |should b|e return|
|000031a0| 65 64 20 69 6e 20 74 68 | 69 73 20 66 69 65 6c 64 |ed in th|is field|
|000031b0| 3b 20 74 68 69 73 20 6d | 61 6b 65 73 20 69 74 20 |; this m|akes it |
|000031c0| 65 61 73 69 65 72 20 74 | 6f 20 64 65 74 65 63 74 |easier t|o detect|
|000031d0| 20 63 6f 6c 6c 69 73 69 | 6f 6e 73 20 62 65 74 77 | collisi|ons betw|
|000031e0| 65 65 6e 20 74 77 6f 20 | 64 65 76 69 63 65 73 20 |een two |devices |
|000031f0| 72 65 73 70 6f 6e 64 69 | 6e 67 20 74 6f 20 61 20 |respondi|ng to a |
|00003200| 74 61 6c 6b 20 72 65 67 | 69 73 74 65 72 20 33 2e |talk reg|ister 3.|
|00003210| 0d 57 68 65 6e 20 61 20 | 64 65 76 69 63 65 20 72 |.When a |device r|
|00003220| 65 63 65 69 76 65 73 20 | 61 20 74 61 6c 6b 20 72 |eceives |a talk r|
|00003230| 65 67 69 73 74 65 72 20 | 33 20 63 6f 6d 6d 61 6e |egister |3 comman|
|00003240| 64 2c 20 69 74 20 73 68 | 6f 75 6c 64 20 73 65 6e |d, it sh|ould sen|
|00003250| 64 20 62 61 63 6b 20 61 | 6c 6c 20 6f 66 20 72 65 |d back a|ll of re|
|00003260| 67 69 73 74 65 72 20 33 | 2c 20 69 6e 63 6c 75 64 |gister 3|, includ|
|00003270| 69 6e 67 20 74 68 65 20 | 72 61 6e 64 6f 6d 20 66 |ing the |random f|
|00003280| 69 65 6c 64 2c 20 61 6e | 64 20 69 74 20 73 68 6f |ield, an|d it sho|
|00003290| 75 6c 64 20 70 61 79 20 | 63 61 72 65 66 75 6c 20 |uld pay |careful |
|000032a0| 61 74 74 65 6e 74 69 6f | 6e 20 74 6f 20 63 6f 6c |attentio|n to col|
|000032b0| 6c 69 73 69 6f 6e 20 64 | 65 74 65 63 74 69 6f 6e |lision d|etection|
|000032c0| 2e 20 53 68 6f 75 6c 64 | 20 61 20 64 65 76 69 63 |. Should| a devic|
|000032d0| 65 20 64 65 74 65 63 74 | 20 61 20 63 6f 6c 6c 69 |e detect| a colli|
|000032e0| 73 69 6f 6e 20 77 68 65 | 6e 20 72 65 73 70 6f 6e |sion whe|n respon|
|000032f0| 64 69 6e 67 20 74 6f 20 | 61 20 74 61 6c 6b 20 72 |ding to |a talk r|
|00003300| 65 67 69 73 74 65 72 20 | 33 20 72 65 71 75 65 73 |egister |3 reques|
|00003310| 74 2c 20 74 68 65 72 65 | 20 69 73 20 61 20 73 70 |t, there| is a sp|
|00003320| 65 63 69 61 6c 20 70 72 | 6f 76 69 73 69 6f 6e 20 |ecial pr|ovision |
|00003330| 69 6e 20 74 68 65 20 41 | 44 42 20 70 72 6f 74 6f |in the A|DB proto|
|00003340| 63 6f 6c 20 77 68 69 63 | 68 20 73 61 79 73 20 74 |col whic|h says t|
|00003350| 68 61 74 20 74 68 65 20 | 64 65 76 69 63 65 20 73 |hat the |device s|
|00003360| 68 6f 75 6c 64 20 69 67 | 6e 6f 72 65 20 74 68 65 |hould ig|nore the|
|00003370| 20 6e 65 78 74 20 6c 69 | 73 74 65 6e 20 72 65 67 | next li|sten reg|
|00003380| 69 73 74 65 72 20 33 20 | 77 68 69 63 68 20 61 73 |ister 3 |which as|
|00003390| 6b 73 20 69 74 20 74 6f | 20 63 68 61 6e 67 65 20 |ks it to| change |
|000033a0| 61 64 64 72 65 73 73 2e | 20 54 68 65 20 6e 65 78 |address.| The nex|
|000033b0| 74 20 74 69 6d 65 20 74 | 68 65 20 64 65 76 69 63 |t time t|he devic|
|000033c0| 65 20 72 65 63 65 69 76 | 65 73 20 61 20 6c 69 73 |e receiv|es a lis|
|000033d0| 74 65 6e 20 72 65 67 69 | 73 74 65 72 20 33 20 63 |ten regi|ster 3 c|
|000033e0| 6f 6d 6d 61 6e 64 2c 20 | 69 74 20 73 68 6f 75 6c |ommand, |it shoul|
|000033f0| 64 20 63 68 65 63 6b 20 | 74 6f 20 73 65 65 20 69 |d check |to see i|
|00003400| 66 20 74 68 65 20 68 61 | 6e 64 6c 65 72 20 49 44 |f the ha|ndler ID|
|00003410| 20 66 69 65 6c 64 20 69 | 73 20 73 65 74 20 74 6f | field i|s set to|
|00003420| 20 24 46 45 2e 20 20 54 | 68 69 73 20 69 73 20 61 | $FE. T|his is a|
|00003430| 20 72 65 73 65 72 76 65 | 64 20 68 61 6e 64 6c 65 | reserve|d handle|
|00003440| 72 20 49 44 20 75 73 65 | 64 20 74 6f 20 64 69 73 |r ID use|d to dis|
|00003450| 74 69 6e 67 75 69 73 68 | 20 74 68 69 73 20 74 79 |tinguish| this ty|
|00003460| 70 65 20 6f 66 20 6c 69 | 73 74 65 6e 20 72 65 71 |pe of li|sten req|
|00003470| 75 65 73 74 3b 20 69 66 | 20 74 68 65 20 68 61 6e |uest; if| the han|
|00003480| 64 6c 65 72 20 49 44 20 | 66 69 65 6c 64 20 69 73 |dler ID |field is|
|00003490| 20 24 46 45 2c 20 74 68 | 65 20 64 65 76 69 63 65 | $FE, th|e device|
|000034a0| 20 73 68 6f 75 6c 64 20 | 6f 6e 6c 79 20 63 68 61 | should |only cha|
|000034b0| 6e 67 65 20 61 64 64 72 | 65 73 73 20 69 66 20 69 |nge addr|ess if i|
|000034c0| 74 20 68 61 73 20 73 61 | 66 65 6c 79 20 74 72 61 |t has sa|fely tra|
|000034d0| 6e 73 6d 69 74 74 65 64 | 20 61 20 63 6f 6d 70 6c |nsmitted| a compl|
|000034e0| 65 74 65 20 70 61 63 6b | 65 74 20 73 69 6e 63 65 |ete pack|et since|
|000034f0| 20 69 74 73 20 6c 61 73 | 74 20 63 6f 6c 6c 69 73 | its las|t collis|
|00003500| 69 6f 6e 2e 20 20 4f 66 | 20 63 6f 75 72 73 65 2c |ion. Of| course,|
|00003510| 20 74 68 65 20 64 65 76 | 69 63 65 20 73 68 6f 75 | the dev|ice shou|
|00003520| 6c 64 20 6e 6f 74 20 61 | 64 6f 70 74 20 74 68 65 |ld not a|dopt the|
|00003530| 20 68 61 6e 64 6c 65 72 | 20 49 44 20 6f 66 20 24 | handler| ID of $|
|00003540| 46 45 2e 0d 48 65 72 65 | 20 69 73 20 61 20 73 75 |FE..Here| is a su|
|00003550| 6d 6d 61 72 79 20 6f 66 | 20 61 20 74 79 70 69 63 |mmary of| a typic|
|00003560| 61 6c 20 73 65 71 75 65 | 6e 63 65 20 77 68 65 72 |al seque|nce wher|
|00003570| 65 20 74 68 65 20 68 6f | 73 74 20 69 73 20 61 74 |e the ho|st is at|
|00003580| 74 65 6d 70 74 69 6e 67 | 20 74 6f 20 73 65 70 61 |tempting| to sepa|
|00003590| 72 61 74 65 20 74 77 6f | 20 64 65 76 69 63 65 73 |rate two| devices|
|000035a0| 2e 20 20 54 68 65 72 65 | 20 61 72 65 20 74 77 6f |. There| are two|
|000035b0| 20 64 65 76 69 63 65 73 | 20 6f 66 20 74 68 65 20 | devices| of the |
|000035c0| 73 61 6d 65 20 74 79 70 | 65 2c 20 77 68 69 63 68 |same typ|e, which|
|000035d0| 20 49 20 77 69 6c 6c 20 | 63 61 6c 6c 20 46 72 65 | I will |call Fre|
|000035e0| 64 20 61 6e 64 20 57 69 | 6c 6d 61 2c 20 61 74 20 |d and Wi|lma, at |
|000035f0| 61 64 64 72 65 73 73 20 | 33 2e 0d 31 29 20 54 68 |address |3..1) Th|
|00003600| 65 20 68 6f 73 74 20 77 | 69 6c 6c 20 73 65 6e 64 |e host w|ill send|
|00003610| 20 61 20 74 61 6c 6b 20 | 72 65 67 69 73 74 65 72 | a talk |register|
|00003620| 20 33 20 63 6f 6d 6d 61 | 6e 64 20 74 6f 20 61 64 | 3 comma|nd to ad|
|00003630| 64 72 65 73 73 20 33 2e | 0d 32 29 20 42 6f 74 68 |dress 3.|.2) Both|
|00003640| 20 46 72 65 64 20 61 6e | 64 20 57 69 6c 6d 61 20 | Fred an|d Wilma |
|00003650| 77 69 6c 6c 20 72 65 63 | 65 69 76 65 20 74 68 65 |will rec|eive the|
|00003660| 20 63 6f 6d 6d 61 6e 64 | 20 61 6e 64 20 62 65 67 | command| and beg|
|00003670| 69 6e 20 74 6f 20 72 65 | 73 70 6f 6e 64 2e 0d 33 |in to re|spond..3|
|00003680| 29 20 45 76 65 6e 20 74 | 68 6f 75 67 68 20 74 68 |) Even t|hough th|
|00003690| 65 79 20 61 72 65 20 73 | 65 6e 64 69 6e 67 20 74 |ey are s|ending t|
|000036a0| 68 65 20 73 61 6d 65 20 | 64 61 74 61 2c 20 61 6e |he same |data, an|
|000036b0| 64 20 74 68 65 79 20 62 | 65 67 69 6e 20 73 65 6e |d they b|egin sen|
|000036c0| 64 69 6e 67 20 61 74 20 | 74 68 65 20 73 61 6d 65 |ding at |the same|
|000036d0| 20 74 69 6d 65 2c 20 74 | 68 65 79 20 73 65 6c 65 | time, t|hey sele|
|000036e0| 63 74 20 64 69 66 66 65 | 72 65 6e 74 20 72 61 6e |ct diffe|rent ran|
|000036f0| 64 6f 6d 20 6e 75 6d 62 | 65 72 73 20 74 6f 20 69 |dom numb|ers to i|
|00003700| 6e 73 65 72 74 20 69 6e | 74 6f 20 74 68 65 20 22 |nsert in|to the "|
|00003710| 64 65 76 69 63 65 20 61 | 64 64 72 65 73 73 22 20 |device a|ddress" |
|00003720| 66 69 65 6c 64 20 6f 66 | 20 72 65 67 69 73 74 65 |field of| registe|
|00003730| 72 20 33 2c 20 62 69 74 | 73 20 37 2d 31 30 2e 0d |r 3, bit|s 7-10..|
|00003740| 34 29 20 57 69 6c 6d 61 | 20 64 65 74 65 63 74 73 |4) Wilma| detects|
|00003750| 20 61 20 63 6f 6c 6c 69 | 73 69 6f 6e 20 77 68 69 | a colli|sion whi|
|00003760| 6c 65 20 74 72 79 69 6e | 67 20 74 6f 20 73 65 6e |le tryin|g to sen|
|00003770| 64 20 62 69 74 20 37 20 | 61 6e 64 20 69 6d 6d 65 |d bit 7 |and imme|
|00003780| 64 69 61 74 65 6c 79 20 | 73 74 6f 70 73 20 73 65 |diately |stops se|
|00003790| 6e 64 69 6e 67 2e 0d 35 | 29 20 46 72 65 64 20 64 |nding..5|) Fred d|
|000037a0| 6f 65 73 20 6e 6f 74 20 | 64 65 74 65 63 74 20 61 |oes not |detect a|
|000037b0| 20 63 6f 6c 6c 69 73 69 | 6f 6e 20 61 6e 64 20 63 | collisi|on and c|
|000037c0| 6f 6d 70 6c 65 74 65 73 | 20 68 69 73 20 74 72 61 |ompletes| his tra|
|000037d0| 6e 73 6d 69 73 73 69 6f | 6e 20 6f 66 20 72 65 67 |nsmissio|n of reg|
|000037e0| 69 73 74 65 72 20 33 2e | 0d 36 29 20 54 68 65 20 |ister 3.|.6) The |
|000037f0| 68 6f 73 74 2c 20 73 65 | 65 69 6e 67 20 74 68 61 |host, se|eing tha|
|00003800| 74 20 61 20 64 65 76 69 | 63 65 20 68 61 73 20 72 |t a devi|ce has r|
|00003810| 65 73 70 6f 6e 64 65 64 | 20 74 6f 20 69 74 73 20 |esponded| to its |
|00003820| 74 61 6c 6b 20 72 65 67 | 69 73 74 65 72 20 33 2c |talk reg|ister 3,|
|00003830| 20 73 65 6e 64 73 20 61 | 20 6c 69 73 74 65 6e 20 | sends a| listen |
|00003840| 72 65 67 69 73 74 65 72 | 20 33 20 74 6f 20 61 64 |register| 3 to ad|
|00003850| 64 72 65 73 73 20 33 2c | 20 61 73 6b 69 6e 67 20 |dress 3,| asking |
|00003860| 74 68 65 20 64 65 76 69 | 63 65 20 74 68 65 72 65 |the devi|ce there|
|00003870| 20 74 6f 20 6d 6f 76 65 | 20 74 6f 20 61 64 64 72 | to move| to addr|
|00003880| 65 73 73 20 24 46 2e 20 | 20 54 68 65 20 68 61 6e |ess $F. | The han|
|00003890| 64 6c 65 72 20 49 44 20 | 66 69 65 6c 64 20 69 73 |dler ID |field is|
|000038a0| 20 24 46 45 2c 20 69 6e | 64 69 63 61 74 69 6e 67 | $FE, in|dicating|
|000038b0| 20 74 68 61 74 20 61 20 | 64 65 76 69 63 65 20 73 | that a |device s|
|000038c0| 68 6f 75 6c 64 20 6e 6f | 74 20 6d 6f 76 65 20 69 |hould no|t move i|
|000038d0| 66 20 69 74 20 68 61 73 | 20 64 65 74 65 63 74 65 |f it has| detecte|
|000038e0| 64 20 61 20 63 6f 6c 6c | 69 73 69 6f 6e 2e 0d 37 |d a coll|ision..7|
|000038f0| 29 20 42 6f 74 68 20 46 | 72 65 64 20 61 6e 64 20 |) Both F|red and |
|00003900| 57 69 6c 6d 61 20 72 65 | 63 65 69 76 65 20 74 68 |Wilma re|ceive th|
|00003910| 65 20 72 65 71 75 65 73 | 74 2e 0d 38 29 20 46 72 |e reques|t..8) Fr|
|00003920| 65 64 20 6d 6f 76 65 73 | 20 74 6f 20 61 64 64 72 |ed moves| to addr|
|00003930| 65 73 73 20 24 46 3b 20 | 68 6f 77 65 76 65 72 2c |ess $F; |however,|
|00003940| 20 57 69 6c 6d 61 20 64 | 6f 65 73 20 6e 6f 74 2c | Wilma d|oes not,|
|00003950| 20 61 73 20 73 68 65 20 | 68 61 73 20 62 65 65 6e | as she |has been|
|00003960| 20 6c 6f 63 6b 65 64 20 | 6f 75 74 20 6f 66 20 6d | locked |out of m|
|00003970| 6f 76 69 6e 67 20 62 65 | 63 61 75 73 65 20 73 68 |oving be|cause sh|
|00003980| 65 20 64 65 74 65 63 74 | 65 64 20 61 20 63 6f 6c |e detect|ed a col|
|00003990| 6c 69 73 69 6f 6e 20 77 | 68 69 6c 65 20 72 65 73 |lision w|hile res|
|000039a0| 70 6f 6e 64 69 6e 67 20 | 74 6f 20 68 65 72 20 6c |ponding |to her l|
|000039b0| 61 73 74 20 74 61 6c 6b | 20 72 65 67 69 73 74 65 |ast talk| registe|
|000039c0| 72 20 33 20 63 6f 6d 6d | 61 6e 64 2e 0d 39 29 20 |r 3 comm|and..9) |
|000039d0| 54 68 65 20 68 6f 73 74 | 20 73 65 6e 64 73 20 61 |The host| sends a|
|000039e0| 20 74 61 6c 6b 20 72 65 | 67 69 73 74 65 72 20 33 | talk re|gister 3|
|000039f0| 20 74 6f 20 61 64 64 72 | 65 73 73 20 24 46 20 74 | to addr|ess $F t|
|00003a00| 6f 20 65 6e 73 75 72 65 | 20 74 68 61 74 20 61 20 |o ensure| that a |
|00003a10| 64 65 76 69 63 65 20 6d | 6f 76 65 64 20 74 68 65 |device m|oved the|
|00003a20| 72 65 2e 20 20 46 72 65 | 64 20 72 65 73 70 6f 6e |re. Fre|d respon|
|00003a30| 64 73 2c 20 61 73 73 75 | 72 69 6e 67 20 74 68 65 |ds, assu|ring the|
|00003a40| 20 68 6f 73 74 20 68 65 | 20 68 61 73 20 6d 6f 76 | host he| has mov|
|00003a50| 65 64 2e 0d 31 30 29 20 | 54 68 65 20 68 6f 73 74 |ed..10) |The host|
|00003a60| 20 72 65 70 65 61 74 73 | 20 74 68 65 20 73 65 70 | repeats| the sep|
|00003a70| 61 72 61 74 69 6f 6e 20 | 70 72 6f 63 65 64 75 72 |aration |procedur|
|00003a80| 65 2c 20 73 65 6e 64 69 | 6e 67 20 61 20 74 61 6c |e, sendi|ng a tal|
|00003a90| 6b 20 72 65 67 69 73 74 | 65 72 20 33 20 74 6f 20 |k regist|er 3 to |
|00003aa0| 61 64 64 72 65 73 73 20 | 33 2c 20 66 6f 6c 6c 6f |address |3, follo|
|00003ab0| 77 65 64 20 62 79 20 61 | 20 6c 69 73 74 65 6e 20 |wed by a| listen |
|00003ac0| 72 65 67 69 73 74 65 72 | 20 33 20 74 6f 20 61 64 |register| 3 to ad|
|00003ad0| 64 72 65 73 73 20 33 20 | 61 73 6b 69 6e 67 20 74 |dress 3 |asking t|
|00003ae0| 68 65 20 64 65 76 69 63 | 65 20 74 68 65 72 65 20 |he devic|e there |
|00003af0| 74 6f 20 6d 6f 76 65 20 | 74 6f 20 61 64 64 72 65 |to move |to addre|
|00003b00| 73 73 20 24 45 2e 0d 31 | 31 29 20 54 68 69 73 20 |ss $E..1|1) This |
|00003b10| 74 69 6d 65 2c 20 57 69 | 6c 6d 61 20 64 6f 65 73 |time, Wi|lma does|
|00003b20| 20 6e 6f 74 20 64 65 74 | 65 63 74 20 61 20 63 6f | not det|ect a co|
|00003b30| 6c 6c 69 73 69 6f 6e 2c | 20 61 73 20 73 68 65 20 |llision,| as she |
|00003b40| 69 73 20 74 68 65 20 6f | 6e 6c 79 20 64 65 76 69 |is the o|nly devi|
|00003b50| 63 65 20 72 65 6d 61 69 | 6e 69 6e 67 20 61 74 20 |ce remai|ning at |
|00003b60| 61 64 64 72 65 73 73 20 | 33 2c 20 73 6f 20 73 68 |address |3, so sh|
|00003b70| 65 20 6d 6f 76 65 73 20 | 74 6f 20 61 64 64 72 65 |e moves |to addre|
|00003b80| 73 73 20 24 45 2e 0d 31 | 32 29 20 54 68 65 20 68 |ss $E..1|2) The h|
|00003b90| 6f 73 74 20 73 65 6e 64 | 73 20 79 65 74 20 61 6e |ost send|s yet an|
|00003ba0| 6f 74 68 65 72 20 74 61 | 6c 6b 20 72 65 67 69 73 |other ta|lk regis|
|00003bb0| 74 65 72 20 33 20 74 6f | 20 61 64 64 72 65 73 73 |ter 3 to| address|
|00003bc0| 20 33 2c 20 62 75 74 20 | 64 6f 65 73 20 6e 6f 74 | 3, but |does not|
|00003bd0| 20 72 65 63 65 69 76 65 | 20 61 20 72 65 73 70 6f | receive| a respo|
|00003be0| 6e 73 65 2c 20 61 73 20 | 74 68 65 72 65 20 61 72 |nse, as |there ar|
|00003bf0| 65 20 6e 6f 20 6d 6f 72 | 65 20 64 65 76 69 63 65 |e no mor|e device|
|00003c00| 73 20 72 65 6d 61 69 6e | 69 6e 67 20 61 74 20 61 |s remain|ing at a|
|00003c10| 64 64 72 65 73 73 20 33 | 2e 0d 31 33 29 20 54 68 |ddress 3|..13) Th|
|00003c20| 65 20 68 6f 73 74 20 72 | 65 6c 6f 63 61 74 65 73 |e host r|elocates|
|00003c30| 20 57 69 6c 6d 61 20 66 | 72 6f 6d 20 61 64 64 72 | Wilma f|rom addr|
|00003c40| 65 73 73 20 24 45 20 62 | 61 63 6b 20 74 6f 20 61 |ess $E b|ack to a|
|00003c50| 64 64 72 65 73 73 20 33 | 20 77 69 74 68 20 61 20 |ddress 3| with a |
|00003c60| 6c 69 73 74 65 6e 20 72 | 65 67 69 73 74 65 72 20 |listen r|egister |
|00003c70| 33 20 63 6f 6d 6d 61 6e | 64 20 73 65 6e 74 20 74 |3 comman|d sent t|
|00003c80| 6f 20 61 64 64 72 65 73 | 73 20 24 45 2e 0d 09 31 |o addres|s $E...1|
|00003c90| 34 29 20 54 68 65 20 68 | 6f 73 74 20 6d 6f 76 65 |4) The h|ost move|
|00003ca0| 73 20 6f 6e 20 61 6e 64 | 20 72 65 70 65 61 74 73 |s on and| repeats|
|00003cb0| 20 74 68 65 20 70 72 6f | 63 65 73 73 20 66 6f 72 | the pro|cess for|
|00003cc0| 20 61 64 64 72 65 73 73 | 20 34 2e 0d 45 61 63 68 | address| 4..Each|
|00003cd0| 20 61 6e 64 20 65 76 65 | 72 79 20 41 44 42 20 63 | and eve|ry ADB c|
|00003ce0| 6f 6e 74 72 6f 6c 6c 65 | 72 20 69 73 6e 27 74 20 |ontrolle|r isn't |
|00003cf0| 67 75 61 72 61 6e 74 65 | 65 64 20 74 6f 20 66 6f |guarante|ed to fo|
|00003d00| 6c 6c 6f 77 20 74 68 69 | 73 20 70 72 6f 63 65 64 |llow thi|s proced|
|00003d10| 75 72 65 20 70 72 65 63 | 69 73 65 6c 79 2c 20 62 |ure prec|isely, b|
|00003d20| 75 74 20 69 74 20 67 69 | 76 65 73 20 61 20 66 65 |ut it gi|ves a fe|
|00003d30| 65 6c 69 6e 67 20 66 6f | 72 20 74 68 65 20 70 72 |eling fo|r the pr|
|00003d40| 69 6e 63 69 70 6c 65 20 | 62 65 68 69 6e 64 20 74 |inciple |behind t|
|00003d50| 68 65 20 61 64 64 72 65 | 73 73 20 72 65 73 6f 6c |he addre|ss resol|
|00003d60| 75 74 69 6f 6e 20 70 72 | 6f 63 65 73 73 2e 20 20 |ution pr|ocess. |
|00003d70| 59 6f 75 20 6d 61 79 20 | 73 65 65 20 73 6f 6d 65 |You may |see some|
|00003d80| 20 69 6d 70 6c 65 6d 65 | 6e 74 61 74 69 6f 6e 73 | impleme|ntations|
|00003d90| 20 6d 6f 76 69 6e 67 20 | 64 65 76 69 63 65 73 20 | moving |devices |
|00003da0| 6d 61 6e 79 20 6d 6f 72 | 65 20 74 69 6d 65 73 20 |many mor|e times |
|00003db0| 74 68 61 6e 20 69 73 20 | 6e 65 63 65 73 73 61 72 |than is |necessar|
|00003dc0| 79 3b 20 74 68 69 73 20 | 69 73 20 64 6f 6e 65 20 |y; this |is done |
|00003dd0| 62 65 63 61 75 73 65 20 | 73 6f 6d 65 20 64 65 76 |because |some dev|
|00003de0| 69 63 65 73 20 68 61 76 | 65 20 62 65 65 6e 20 6d |ices hav|e been m|
|00003df0| 61 6e 75 66 61 63 74 75 | 72 65 64 20 74 6f 20 74 |anufactu|red to t|
|00003e00| 6f 6c 65 72 61 6e 63 65 | 73 20 63 6c 6f 73 65 20 |olerance|s close |
|00003e10| 65 6e 6f 75 67 68 20 74 | 68 61 74 20 6e 6f 74 20 |enough t|hat not |
|00003e20| 6f 6e 6c 79 20 64 6f 20 | 74 68 65 79 20 73 65 6e |only do |they sen|
|00003e30| 64 20 74 68 65 69 72 20 | 62 69 74 73 20 61 74 20 |d their |bits at |
|00003e40| 65 78 61 63 74 6c 79 20 | 74 68 65 20 73 61 6d 65 |exactly |the same|
|00003e50| 20 74 69 6d 65 20 61 6e | 64 20 73 6f 20 63 61 6e | time an|d so can|
|00003e60| 6e 6f 74 20 64 65 74 65 | 63 74 20 63 6f 6c 6c 69 |not dete|ct colli|
|00003e70| 73 69 6f 6e 73 20 77 69 | 74 68 20 65 61 63 68 20 |sions wi|th each |
|00003e80| 6f 74 68 65 72 2c 20 62 | 75 74 20 74 68 65 79 20 |other, b|ut they |
|00003e90| 73 65 6c 65 63 74 20 74 | 68 65 20 73 61 6d 65 20 |select t|he same |
|00003ea0| 72 61 6e 64 6f 6d 20 6e | 75 6d 62 65 72 73 20 74 |random n|umbers t|
|00003eb0| 6f 20 74 72 61 6e 73 6d | 69 74 2e 20 20 57 65 20 |o transm|it. We |
|00003ec0| 72 65 63 6f 6d 6d 65 6e | 64 20 74 68 61 74 20 79 |recommen|d that y|
|00003ed0| 6f 75 20 69 6e 63 6c 75 | 64 65 20 73 6f 6d 65 20 |ou inclu|de some |
|00003ee0| 6c 6f 77 20 74 6f 6c 65 | 72 61 6e 63 65 20 64 65 |low tole|rance de|
|00003ef0| 76 69 63 65 20 28 73 75 | 63 68 20 61 73 20 61 20 |vice (su|ch as a |
|00003f00| 63 61 70 61 63 69 74 6f | 72 20 6f 6e 20 79 6f 75 |capacito|r on you|
|00003f10| 72 20 72 65 73 65 74 20 | 6c 69 6e 65 29 20 74 6f |r reset |line) to|
|00003f20| 20 65 6e 73 75 72 65 20 | 74 68 61 74 20 76 61 72 | ensure |that var|
|00003f30| 69 6f 75 73 20 64 65 76 | 69 63 65 73 20 77 69 6c |ious dev|ices wil|
|00003f40| 6c 20 72 65 73 70 6f 6e | 64 20 64 69 66 66 65 72 |l respon|d differ|
|00003f50| 65 6e 74 6c 79 20 61 6e | 64 20 62 65 20 61 62 6c |ently an|d be abl|
|00003f60| 65 20 74 6f 20 64 65 74 | 65 63 74 20 74 68 65 69 |e to det|ect thei|
|00003f70| 72 20 63 6f 6c 6c 69 73 | 69 6f 6e 73 20 77 69 74 |r collis|ions wit|
|00003f80| 68 20 65 61 63 68 20 6f | 74 68 65 72 2e 0d 41 75 |h each o|ther..Au|
|00003f90| 74 6f 70 6f 6c 6c 69 6e | 67 0d 41 75 74 6f 70 6f |topollin|g.Autopo|
|00003fa0| 6c 6c 69 6e 67 20 69 73 | 20 74 68 65 20 70 72 69 |lling is| the pri|
|00003fb0| 6d 61 72 79 20 6d 65 74 | 68 6f 64 20 76 69 61 20 |mary met|hod via |
|00003fc0| 77 68 69 63 68 20 74 68 | 65 20 68 6f 73 74 20 66 |which th|e host f|
|00003fd0| 65 74 63 68 65 73 20 64 | 61 74 61 20 66 72 6f 6d |etches d|ata from|
|00003fe0| 20 79 6f 75 72 20 64 65 | 76 69 63 65 2e 20 20 54 | your de|vice. T|
|00003ff0| 68 65 20 62 61 73 69 63 | 20 6d 65 63 68 61 6e 69 |he basic| mechani|
|00004000| 73 6d 20 69 73 20 74 68 | 61 74 20 74 68 65 20 68 |sm is th|at the h|
|00004010| 6f 73 74 20 72 65 70 65 | 61 74 65 64 6c 79 20 69 |ost repe|atedly i|
|00004020| 73 73 75 65 73 20 74 61 | 6c 6b 20 72 65 67 69 73 |ssues ta|lk regis|
|00004030| 74 65 72 20 30 20 63 6f | 6d 6d 61 6e 64 73 20 74 |ter 0 co|mmands t|
|00004040| 6f 20 79 6f 75 72 20 64 | 65 76 69 63 65 3b 20 69 |o your d|evice; i|
|00004050| 66 20 79 6f 75 72 20 64 | 65 76 69 63 65 20 72 65 |f your d|evice re|
|00004060| 73 70 6f 6e 64 73 20 77 | 69 74 68 20 64 61 74 61 |sponds w|ith data|
|00004070| 2c 20 69 74 20 69 73 20 | 70 61 73 73 65 64 20 74 |, it is |passed t|
|00004080| 6f 20 79 6f 75 72 20 64 | 65 76 69 63 65 27 73 20 |o your d|evice's |
|00004090| 64 72 69 76 65 72 2c 20 | 77 68 69 63 68 20 73 68 |driver, |which sh|
|000040a0| 6f 75 6c 64 20 61 63 74 | 20 6f 6e 20 69 74 20 61 |ould act| on it a|
|000040b0| 73 20 6e 65 77 20 64 61 | 74 61 2e 0d 54 68 69 73 |s new da|ta..This|
|000040c0| 20 69 6d 70 6c 69 65 73 | 20 74 68 61 74 20 72 65 | implies| that re|
|000040d0| 67 69 73 74 65 72 20 30 | 20 73 68 6f 75 6c 64 20 |gister 0| should |
|000040e0| 62 65 20 74 68 65 20 70 | 72 69 6d 61 72 79 20 64 |be the p|rimary d|
|000040f0| 61 74 61 20 74 72 61 6e | 73 66 65 72 20 72 65 67 |ata tran|sfer reg|
|00004100| 69 73 74 65 72 20 66 6f | 72 20 6d 6f 73 74 20 64 |ister fo|r most d|
|00004110| 65 76 69 63 65 73 3b 20 | 72 65 67 69 73 74 65 72 |evices; |register|
|00004120| 73 20 31 20 61 6e 64 20 | 32 20 61 72 65 20 75 73 |s 1 and |2 are us|
|00004130| 75 61 6c 6c 79 20 6f 6e | 6c 79 20 75 73 65 64 20 |ually on|ly used |
|00004140| 66 6f 72 20 73 75 70 70 | 6c 65 6d 65 6e 74 61 72 |for supp|lementar|
|00004150| 79 20 64 61 74 61 20 74 | 6f 20 63 6f 6e 66 69 67 |y data t|o config|
|00004160| 75 72 65 20 74 68 65 20 | 64 65 76 69 63 65 2e 20 |ure the |device. |
|00004170| 20 4d 6f 73 74 20 64 65 | 76 69 63 65 20 64 72 69 | Most de|vice dri|
|00004180| 76 65 72 73 20 68 61 76 | 65 20 6e 6f 20 6e 65 65 |vers hav|e no nee|
|00004190| 64 20 74 6f 20 69 73 73 | 75 65 20 63 6f 6d 6d 61 |d to iss|ue comma|
|000041a0| 6e 64 73 20 74 6f 20 74 | 68 65 69 72 20 64 65 76 |nds to t|heir dev|
|000041b0| 69 63 65 2c 20 61 73 20 | 61 6c 6c 20 6e 65 63 65 |ice, as |all nece|
|000041c0| 73 73 61 72 79 20 64 61 | 74 61 20 68 61 73 20 62 |ssary da|ta has b|
|000041d0| 65 65 6e 20 74 72 61 6e | 73 66 65 72 72 65 64 20 |een tran|sferred |
|000041e0| 77 69 74 68 69 6e 20 72 | 65 67 69 73 74 65 72 20 |within r|egister |
|000041f0| 30 2e 0d 57 68 65 6e 20 | 61 20 64 65 76 69 63 65 |0..When |a device|
|00004200| 20 77 69 73 68 65 73 20 | 74 6f 20 74 72 61 6e 73 | wishes |to trans|
|00004210| 6d 69 74 20 64 61 74 61 | 2c 20 69 74 20 73 68 6f |mit data|, it sho|
|00004220| 75 6c 64 20 77 61 69 74 | 20 75 6e 74 69 6c 20 61 |uld wait| until a|
|00004230| 20 63 6f 6d 6d 61 6e 64 | 20 69 73 20 69 73 73 75 | command| is issu|
|00004240| 65 64 20 74 6f 20 69 74 | 20 6f 72 20 73 6f 6d 65 |ed to it| or some|
|00004250| 20 6f 74 68 65 72 20 64 | 65 76 69 63 65 2e 20 20 | other d|evice. |
|00004260| 49 66 2c 20 77 68 65 6e | 20 74 68 69 73 20 74 72 |If, when| this tr|
|00004270| 61 6e 73 6d 69 73 73 69 | 6f 6e 20 69 73 20 63 6f |ansmissi|on is co|
|00004280| 6d 70 6c 65 74 69 6e 67 | 2c 20 69 74 20 73 74 69 |mpleting|, it sti|
|00004290| 6c 6c 20 77 69 73 68 65 | 73 20 74 6f 20 74 72 61 |ll wishe|s to tra|
|000042a0| 6e 73 66 65 72 20 64 61 | 74 61 20 28 69 66 20 74 |nsfer da|ta (if t|
|000042b0| 68 65 20 63 6f 6d 6d 61 | 6e 64 20 77 61 73 20 73 |he comma|nd was s|
|000042c0| 65 6e 74 20 74 6f 20 6f | 75 72 20 64 65 76 69 63 |ent to o|ur devic|
|000042d0| 65 2c 20 69 74 20 6d 69 | 67 68 74 20 68 61 76 65 |e, it mi|ght have|
|000042e0| 20 66 65 74 63 68 65 64 | 20 74 68 65 20 64 61 74 | fetched| the dat|
|000042f0| 61 20 61 6c 72 65 61 64 | 79 2c 29 20 69 74 20 73 |a alread|y,) it s|
|00004300| 68 6f 75 6c 64 20 61 73 | 73 65 72 74 20 53 52 51 |hould as|sert SRQ|
|00004310| 20 61 66 74 65 72 20 74 | 68 65 20 64 61 74 61 20 | after t|he data |
|00004320| 70 6f 72 74 69 6f 6e 20 | 6f 66 20 74 68 65 20 63 |portion |of the c|
|00004330| 6f 6d 6d 61 6e 64 20 62 | 79 20 68 6f 6c 64 69 6e |ommand b|y holdin|
|00004340| 67 20 74 68 65 20 62 75 | 73 20 6c 6f 77 20 66 6f |g the bu|s low fo|
|00004350| 72 20 33 30 30 20 b5 73 | 20 61 66 74 65 72 20 74 |r 300 .s| after t|
|00004360| 68 65 20 73 74 6f 70 20 | 62 69 74 2e 20 20 54 68 |he stop |bit. Th|
|00004370| 69 73 20 77 69 6c 6c 20 | 61 6c 65 72 74 20 74 68 |is will |alert th|
|00004380| 65 20 68 6f 73 74 20 74 | 68 61 74 20 73 6f 6d 65 |e host t|hat some|
|00004390| 20 64 65 76 69 63 65 20 | 77 69 73 68 65 73 20 74 | device |wishes t|
|000043a0| 6f 20 74 72 61 6e 73 6d | 69 74 20 64 61 74 61 2e |o transm|it data.|
|000043b0| 20 20 49 74 20 77 69 6c | 6c 20 74 68 65 6e 20 62 | It wil|l then b|
|000043c0| 65 67 69 6e 20 70 6f 6c | 6c 69 6e 67 20 74 68 6f |egin pol|ling tho|
|000043d0| 73 65 20 61 64 64 72 65 | 73 73 65 73 20 77 68 69 |se addre|sses whi|
|000043e0| 63 68 20 69 74 20 6b 6e | 6f 77 73 20 68 6f 6c 64 |ch it kn|ows hold|
|000043f0| 20 64 65 76 69 63 65 73 | 2e 20 20 49 66 20 61 20 | devices|. If a |
|00004400| 64 65 76 69 63 65 20 64 | 6f 65 73 20 6e 6f 74 20 |device d|oes not |
|00004410| 68 61 76 65 20 61 6e 79 | 20 64 61 74 61 2c 20 74 |have any| data, t|
|00004420| 68 65 20 68 6f 73 74 20 | 77 69 6c 6c 20 6d 6f 76 |he host |will mov|
|00004430| 65 20 6f 6e 20 74 6f 20 | 74 68 65 20 6e 65 78 74 |e on to |the next|
|00004440| 20 61 64 64 72 65 73 73 | 2c 20 61 73 6b 69 6e 67 | address|, asking|
|00004450| 20 65 61 63 68 20 64 65 | 76 69 63 65 20 69 6e 20 | each de|vice in |
|00004460| 74 75 72 6e 2c 20 75 6e | 74 69 6c 20 53 52 51 20 |turn, un|til SRQ |
|00004470| 69 73 20 6e 6f 20 6c 6f | 6e 67 65 72 20 61 73 73 |is no lo|nger ass|
|00004480| 65 72 74 65 64 2c 20 69 | 6e 64 69 63 61 74 69 6e |erted, i|ndicatin|
|00004490| 67 20 74 68 61 74 20 61 | 6c 6c 20 70 65 6e 64 69 |g that a|ll pendi|
|000044a0| 6e 67 20 64 61 74 61 20 | 68 61 73 20 62 65 65 6e |ng data |has been|
|000044b0| 20 66 65 74 63 68 65 64 | 2e 0d 57 68 65 6e 20 61 | fetched|..When a|
|000044c0| 6e 20 53 52 51 20 69 73 | 20 6e 6f 74 20 61 73 73 |n SRQ is| not ass|
|000044d0| 65 72 74 65 64 2c 20 74 | 68 65 20 68 6f 73 74 20 |erted, t|he host |
|000044e0| 77 69 6c 6c 20 63 6f 6e | 74 69 6e 75 61 6c 6c 79 |will con|tinually|
|000044f0| 20 70 6f 6c 6c 20 74 68 | 65 20 6c 61 73 74 20 64 | poll th|e last d|
|00004500| 65 76 69 63 65 20 74 6f | 20 73 65 6e 64 20 69 74 |evice to| send it|
|00004510| 20 64 61 74 61 2c 20 73 | 65 6e 64 69 6e 67 20 69 | data, s|ending i|
|00004520| 74 20 74 61 6c 6b 20 72 | 65 67 69 73 74 65 72 20 |t talk r|egister |
|00004530| 30 20 63 6f 6d 6d 61 6e | 64 73 20 70 65 72 69 6f |0 comman|ds perio|
|00004540| 64 69 63 61 6c 6c 79 2e | 20 20 54 68 69 73 20 69 |dically.| This i|
|00004550| 73 20 64 6f 6e 65 20 75 | 6e 64 65 72 20 74 68 65 |s done u|nder the|
|00004560| 20 61 73 73 75 6d 70 74 | 69 6f 6e 20 74 68 61 74 | assumpt|ion that|
|00004570| 20 74 68 69 73 20 69 73 | 20 6c 69 6b 65 6c 79 20 | this is| likely |
|00004580| 74 6f 20 62 65 20 74 68 | 65 20 6e 65 78 74 20 70 |to be th|e next p|
|00004590| 6c 61 63 65 20 74 68 65 | 20 75 73 65 72 20 69 6e |lace the| user in|
|000045a0| 74 65 72 61 63 74 73 3b | 20 69 66 20 74 68 65 20 |teracts;| if the |
|000045b0| 75 73 65 72 20 74 79 70 | 65 73 20 61 20 63 68 61 |user typ|es a cha|
|000045c0| 72 61 63 74 65 72 2c 20 | 73 68 65 20 69 73 20 76 |racter, |she is v|
|000045d0| 65 72 79 20 6c 69 6b 65 | 6c 79 20 74 6f 20 74 79 |ery like|ly to ty|
|000045e0| 70 65 20 61 6e 6f 74 68 | 65 72 20 73 6f 6f 6e 2e |pe anoth|er soon.|
|000045f0| 20 20 4f 6e 20 63 75 72 | 72 65 6e 74 20 68 6f 73 | On cur|rent hos|
|00004600| 74 73 2c 20 74 68 69 73 | 20 63 61 6e 20 68 61 70 |ts, this| can hap|
|00004610| 70 65 6e 20 75 70 20 74 | 6f 20 31 35 30 20 74 69 |pen up t|o 150 ti|
|00004620| 6d 65 73 20 61 20 73 65 | 63 6f 6e 64 2c 20 61 6c |mes a se|cond, al|
|00004630| 74 68 6f 75 67 68 20 69 | 74 20 63 61 6e 20 68 61 |though i|t can ha|
|00004640| 70 70 65 6e 20 6d 75 63 | 68 20 6c 65 73 73 20 66 |ppen muc|h less f|
|00004650| 72 65 71 75 65 6e 74 6c | 79 20 69 6e 20 73 6f 6d |requentl|y in som|
|00004660| 65 20 63 61 73 65 73 2e | 20 49 66 20 74 68 65 20 |e cases.| If the |
|00004670| 64 65 76 69 63 65 20 72 | 65 73 70 6f 6e 64 73 20 |device r|esponds |
|00004680| 77 69 74 68 20 61 6e 79 | 20 64 61 74 61 2c 20 74 |with any| data, t|
|00004690| 68 65 20 68 6f 73 74 20 | 77 69 6c 6c 20 63 61 6c |he host |will cal|
|000046a0| 6c 20 74 68 65 20 64 65 | 76 69 63 65 27 73 20 64 |l the de|vice's d|
|000046b0| 72 69 76 65 72 20 77 69 | 74 68 20 74 68 65 20 64 |river wi|th the d|
|000046c0| 61 74 61 2e 0d 59 6f 75 | 72 20 64 65 76 69 63 65 |ata..You|r device|
|000046d0| 20 73 68 6f 75 6c 64 20 | 6f 6e 6c 79 20 72 65 73 | should |only res|
|000046e0| 70 6f 6e 64 20 77 69 74 | 68 20 64 61 74 61 20 77 |pond wit|h data w|
|000046f0| 68 65 6e 20 73 65 6e 74 | 20 61 20 74 61 6c 6b 20 |hen sent| a talk |
|00004700| 72 65 67 69 73 74 65 72 | 20 30 20 63 6f 6d 6d 61 |register| 0 comma|
|00004710| 6e 64 20 69 66 20 69 74 | 20 68 61 73 20 6e 65 77 |nd if it| has new|
|00004720| 20 64 61 74 61 2e 20 49 | 66 20 74 68 65 20 73 74 | data. I|f the st|
|00004730| 61 74 75 73 20 6f 66 20 | 74 68 65 20 64 65 76 69 |atus of |the devi|
|00004740| 63 65 20 68 61 73 20 6e | 6f 74 20 63 68 61 6e 67 |ce has n|ot chang|
|00004750| 65 64 20 73 69 6e 63 65 | 20 74 68 65 20 6c 61 73 |ed since| the las|
|00004760| 74 20 74 61 6c 6b 20 72 | 65 67 69 73 74 65 72 20 |t talk r|egister |
|00004770| 30 2c 20 74 68 65 6e 20 | 69 74 20 73 68 6f 75 6c |0, then |it shoul|
|00004780| 64 20 6e 6f 74 20 72 65 | 73 70 6f 6e 64 20 61 74 |d not re|spond at|
|00004790| 20 61 6c 6c 2c 20 61 6c | 6c 6f 77 69 6e 67 20 74 | all, al|lowing t|
|000047a0| 68 65 20 62 75 73 20 74 | 6f 20 74 69 6d 65 20 6f |he bus t|o time o|
|000047b0| 75 74 2e 20 54 68 69 73 | 20 69 73 20 75 73 65 66 |ut. This| is usef|
|000047c0| 75 6c 20 66 6f 72 20 74 | 77 6f 20 72 65 61 73 6f |ul for t|wo reaso|
|000047d0| 6e 73 3a 20 66 69 72 73 | 74 2c 20 69 74 20 74 65 |ns: firs|t, it te|
|000047e0| 6e 64 73 20 74 6f 20 72 | 65 64 75 63 65 20 74 68 |nds to r|educe th|
|000047f0| 65 20 64 65 6d 61 6e 64 | 73 20 6f 6e 20 74 68 65 |e demand|s on the|
|00004800| 20 68 6f 73 74 2c 20 61 | 73 20 79 6f 75 72 20 64 | host, a|s your d|
|00004810| 72 69 76 65 72 20 6e 65 | 65 64 20 6e 6f 74 20 62 |river ne|ed not b|
|00004820| 65 20 63 61 6c 6c 65 64 | 20 77 68 65 6e 20 79 6f |e called| when yo|
|00004830| 75 72 20 64 65 76 69 63 | 65 20 68 61 73 20 6e 6f |ur devic|e has no|
|00004840| 74 68 69 6e 67 20 75 73 | 65 66 75 6c 20 74 6f 20 |thing us|eful to |
|00004850| 73 61 79 2e 20 53 65 63 | 6f 6e 64 2c 20 69 6e 20 |say. Sec|ond, in |
|00004860| 73 6f 6d 65 20 41 44 42 | 20 69 6d 70 6c 65 6d 65 |some ADB| impleme|
|00004870| 6e 74 61 74 69 6f 6e 73 | 2c 20 74 68 65 20 68 6f |ntations|, the ho|
|00004880| 73 74 20 63 61 6e 20 67 | 65 74 20 22 68 75 6e 67 |st can g|et "hung|
|00004890| 20 75 70 22 20 6f 6e 20 | 79 6f 75 72 20 64 65 76 | up" on |your dev|
|000048a0| 69 63 65 20 69 66 20 79 | 6f 75 20 61 6c 77 61 79 |ice if y|ou alway|
|000048b0| 73 20 72 65 73 70 6f 6e | 64 2e 20 46 6f 72 20 65 |s respon|d. For e|
|000048c0| 78 61 6d 70 6c 65 2c 20 | 73 61 79 20 74 68 61 74 |xample, |say that|
|000048d0| 20 79 6f 75 20 68 61 76 | 65 20 61 20 64 65 76 69 | you hav|e a devi|
|000048e0| 63 65 20 61 74 20 61 64 | 64 72 65 73 73 20 34 20 |ce at ad|dress 4 |
|000048f0| 77 68 69 63 68 20 77 69 | 6c 6c 20 61 6c 77 61 79 |which wi|ll alway|
|00004900| 73 20 72 65 73 70 6f 6e | 64 2c 20 72 65 67 61 72 |s respon|d, regar|
|00004910| 64 6c 65 73 73 20 6f 66 | 20 77 68 65 74 68 65 72 |dless of| whether|
|00004920| 20 69 74 20 68 61 73 20 | 6e 65 77 20 64 61 74 61 | it has |new data|
|00004930| 2c 20 74 68 65 72 65 20 | 69 73 20 61 6e 6f 74 68 |, there |is anoth|
|00004940| 65 72 20 64 65 76 69 63 | 65 20 61 74 20 61 64 64 |er devic|e at add|
|00004950| 72 65 73 73 20 37 2c 20 | 61 6e 64 20 74 68 65 20 |ress 7, |and the |
|00004960| 73 79 73 74 65 6d 20 69 | 73 20 63 75 72 72 65 6e |system i|s curren|
|00004970| 74 6c 79 20 61 75 74 6f | 70 6f 6c 6c 69 6e 67 20 |tly auto|polling |
|00004980| 61 64 64 72 65 73 73 20 | 32 2e 20 49 66 20 74 68 |address |2. If th|
|00004990| 65 20 64 65 76 69 63 65 | 20 61 74 20 61 64 64 72 |e device| at addr|
|000049a0| 65 73 73 20 37 20 61 73 | 73 65 72 74 73 20 53 52 |ess 7 as|serts SR|
|000049b0| 51 2c 20 74 68 65 20 73 | 79 73 74 65 6d 20 77 69 |Q, the s|ystem wi|
|000049c0| 6c 6c 20 62 65 67 69 6e | 20 6c 6f 6f 6b 69 6e 67 |ll begin| looking|
|000049d0| 20 74 68 72 6f 75 67 68 | 20 74 68 65 20 61 64 64 | through| the add|
|000049e0| 72 65 73 73 65 73 20 6c | 6f 6f 6b 69 6e 67 20 66 |resses l|ooking f|
|000049f0| 6f 72 20 74 68 65 20 64 | 65 76 69 63 65 20 77 68 |or the d|evice wh|
|00004a00| 69 63 68 20 68 61 73 20 | 64 61 74 61 20 74 6f 20 |ich has |data to |
|00004a10| 73 65 6e 64 2e 20 20 57 | 68 65 6e 20 69 74 20 72 |send. W|hen it r|
|00004a20| 65 61 63 68 65 73 20 79 | 6f 75 72 20 64 65 76 69 |eaches y|our devi|
|00004a30| 63 65 20 61 74 20 61 64 | 64 72 65 73 73 20 34 2c |ce at ad|dress 4,|
|00004a40| 20 79 6f 75 72 20 64 65 | 76 69 63 65 20 77 69 6c | your de|vice wil|
|00004a50| 6c 20 72 65 73 70 6f 6e | 64 2c 20 61 6c 74 68 6f |l respon|d, altho|
|00004a60| 75 67 68 20 69 74 20 68 | 61 73 20 6e 6f 74 68 69 |ugh it h|as nothi|
|00004a70| 6e 67 20 6e 65 77 20 74 | 6f 20 73 61 79 2e 20 4f |ng new t|o say. O|
|00004a80| 6e 20 73 6f 6d 65 20 69 | 6d 70 6c 65 6d 65 6e 74 |n some i|mplement|
|00004a90| 61 74 69 6f 6e 73 2c 20 | 74 68 69 73 20 77 69 6c |ations, |this wil|
|00004aa0| 6c 20 63 61 75 73 65 20 | 74 68 65 20 68 6f 73 74 |l cause |the host|
|00004ab0| 20 74 6f 20 72 65 70 65 | 61 74 65 64 6c 79 20 61 | to repe|atedly a|
|00004ac0| 73 6b 20 79 6f 75 72 20 | 64 65 76 69 63 65 20 66 |sk your |device f|
|00004ad0| 6f 72 20 6d 6f 72 65 20 | 64 61 74 61 2c 20 61 6e |or more |data, an|
|00004ae0| 64 20 79 6f 75 72 20 64 | 65 76 69 63 65 20 77 69 |d your d|evice wi|
|00004af0| 6c 6c 20 63 6f 6e 74 69 | 6e 75 65 20 72 65 73 70 |ll conti|nue resp|
|00004b00| 6f 6e 64 69 6e 67 2e 20 | 4d 65 61 6e 77 68 69 6c |onding. |Meanwhil|
|00004b10| 65 2c 20 64 65 76 69 63 | 65 20 37 20 69 73 20 77 |e, devic|e 7 is w|
|00004b20| 69 74 68 65 72 69 6e 67 | 20 61 77 61 79 20 61 74 |ithering| away at|
|00004b30| 20 74 68 65 20 65 6e 64 | 20 6f 66 20 74 68 65 20 | the end| of the |
|00004b40| 62 75 73 20 61 6e 64 20 | 77 69 6c 6c 20 6e 65 76 |bus and |will nev|
|00004b50| 65 72 20 67 65 74 20 73 | 65 72 76 69 63 65 64 2e |er get s|erviced.|
|00004b60| 20 57 68 61 74 20 79 6f | 75 72 20 64 65 76 69 63 | What yo|ur devic|
|00004b70| 65 20 73 68 6f 75 6c 64 | 20 64 6f 20 69 73 20 6e |e should| do is n|
|00004b80| 6f 74 20 72 65 73 70 6f | 6e 64 20 74 6f 20 74 68 |ot respo|nd to th|
|00004b90| 65 20 74 61 6c 6b 20 72 | 65 67 69 73 74 65 72 20 |e talk r|egister |
|00004ba0| 30 2c 20 61 73 20 69 74 | 20 68 61 73 20 6e 6f 20 |0, as it| has no |
|00004bb0| 6e 65 77 20 64 61 74 61 | 3b 20 74 68 69 73 20 77 |new data|; this w|
|00004bc0| 69 6c 6c 20 61 6c 6c 6f | 77 20 61 6c 6c 20 68 6f |ill allo|w all ho|
|00004bd0| 73 74 20 69 6d 70 6c 65 | 6d 65 6e 74 61 74 69 6f |st imple|mentatio|
|00004be0| 6e 73 20 74 6f 20 70 61 | 73 73 20 79 6f 75 20 62 |ns to pa|ss you b|
|00004bf0| 79 20 61 6e 64 20 72 65 | 61 63 68 20 74 68 65 20 |y and re|ach the |
|00004c00| 64 65 76 69 63 65 20 61 | 74 20 61 64 64 72 65 73 |device a|t addres|
|00004c10| 73 20 37 20 77 68 69 63 | 68 20 6e 65 65 64 73 20 |s 7 whic|h needs |
|00004c20| 74 68 65 20 68 6f 73 74 | 27 73 20 61 74 74 65 6e |the host|'s atten|
|00004c30| 74 69 6f 6e 2e 0d 41 20 | 75 73 65 66 75 6c 20 73 |tion..A |useful s|
|00004c40| 75 6d 6d 61 72 79 20 6f | 66 20 61 20 72 65 61 73 |ummary o|f a reas|
|00004c50| 6f 6e 61 62 6c 65 20 61 | 6c 67 6f 72 69 74 68 6d |onable a|lgorithm|
|00004c60| 20 69 73 3a 0d a5 09 57 | 61 69 74 20 66 6f 72 20 | is:...W|ait for |
|00004c70| 61 20 63 6f 6d 6d 61 6e | 64 20 74 6f 20 62 65 67 |a comman|d to beg|
|00004c80| 69 6e 0d a5 09 49 66 20 | 74 68 65 20 63 6f 6d 6d |in...If |the comm|
|00004c90| 61 6e 64 20 69 73 20 64 | 69 72 65 63 74 65 64 20 |and is d|irected |
|00004ca0| 74 6f 20 6d 79 20 61 64 | 64 72 65 73 73 2c 20 68 |to my ad|dress, h|
|00004cb0| 61 6e 64 6c 65 20 69 74 | 2e 20 20 49 66 20 69 74 |andle it|. If it|
|00004cc0| 20 69 73 20 61 20 74 61 | 6c 6b 20 72 65 67 69 73 | is a ta|lk regis|
|00004cd0| 74 65 72 20 30 20 63 6f | 6d 6d 61 6e 64 2c 20 6f |ter 0 co|mmand, o|
|00004ce0| 6e 6c 79 20 72 65 73 70 | 6f 6e 64 20 69 66 20 74 |nly resp|ond if t|
|00004cf0| 68 65 72 65 20 69 73 20 | 6e 65 77 20 64 61 74 61 |here is |new data|
|00004d00| 20 77 61 69 74 69 6e 67 | 20 74 6f 20 62 65 20 73 | waiting| to be s|
|00004d10| 65 6e 74 2e 0d a5 09 41 | 74 20 74 68 65 20 65 6e |ent....A|t the en|
|00004d20| 64 20 6f 66 20 74 68 65 | 20 63 6f 6d 6d 61 6e 64 |d of the| command|
|00004d30| 2c 20 69 66 20 74 68 65 | 72 65 20 69 73 20 64 61 |, if the|re is da|
|00004d40| 74 61 20 77 61 69 74 69 | 6e 67 20 74 6f 20 62 65 |ta waiti|ng to be|
|00004d50| 20 73 65 6e 74 2c 20 61 | 73 73 65 72 74 20 53 52 | sent, a|ssert SR|
|00004d60| 51 2c 20 72 65 67 61 72 | 64 6c 65 73 73 20 6f 66 |Q, regar|dless of|
|00004d70| 20 77 68 6f 20 74 68 65 | 20 6f 72 69 67 69 6e 61 | who the| origina|
|00004d80| 6c 20 63 6f 6d 6d 61 6e | 64 20 77 61 73 20 64 69 |l comman|d was di|
|00004d90| 72 65 63 74 65 64 20 74 | 6f 77 61 72 64 73 2e 0d |rected t|owards..|
|00004da0| 54 68 69 73 20 73 69 6d | 70 6c 65 20 62 65 68 61 |This sim|ple beha|
|00004db0| 76 69 6f 72 20 77 69 6c | 6c 20 70 72 6f 64 75 63 |vior wil|l produc|
|00004dc0| 65 20 74 68 65 20 61 70 | 70 72 6f 70 72 69 61 74 |e the ap|propriat|
|00004dd0| 65 20 72 65 73 70 6f 6e | 73 65 73 20 61 6e 64 20 |e respon|ses and |
|00004de0| 53 52 51 20 67 65 6e 65 | 72 61 74 69 6f 6e 20 66 |SRQ gene|ration f|
|00004df0| 6f 72 20 70 72 6f 70 65 | 72 20 62 75 73 20 66 75 |or prope|r bus fu|
|00004e00| 6e 63 74 69 6f 6e 69 6e | 67 2e 20 20 49 74 20 73 |nctionin|g. It s|
|00004e10| 68 6f 75 6c 64 6e 27 74 | 20 62 65 20 6e 65 63 65 |houldn't| be nece|
|00004e20| 73 73 61 72 79 20 66 6f | 72 20 79 6f 75 72 20 64 |ssary fo|r your d|
|00004e30| 65 76 69 63 65 20 74 6f | 20 65 78 70 6c 69 63 69 |evice to| explici|
|00004e40| 74 6c 79 20 68 61 76 65 | 20 61 6e 79 20 6b 6e 6f |tly have| any kno|
|00004e50| 77 6c 65 64 67 65 20 6f | 66 20 77 68 65 74 68 65 |wledge o|f whethe|
|00004e60| 72 20 69 74 20 69 73 20 | 74 68 65 20 22 61 63 74 |r it is |the "act|
|00004e70| 69 76 65 22 20 64 65 76 | 69 63 65 20 6f 72 20 6e |ive" dev|ice or n|
|00004e80| 6f 74 3b 20 61 20 72 6f | 62 75 73 74 20 62 61 73 |ot; a ro|bust bas|
|00004e90| 69 63 20 62 65 68 61 76 | 69 6f 72 20 77 69 6c 6c |ic behav|ior will|
|00004ea0| 20 65 6c 69 6d 69 6e 61 | 74 65 20 61 6e 79 20 6e | elimina|te any n|
|00004eb0| 65 65 64 20 66 6f 72 20 | 73 75 63 68 20 69 6e 66 |eed for |such inf|
|00004ec0| 6f 72 6d 61 74 69 6f 6e | 2e 0d 41 73 20 61 6e 20 |ormation|..As an |
|00004ed0| 6f 70 74 69 6d 69 7a 61 | 74 69 6f 6e 2c 20 61 6c |optimiza|tion, al|
|00004ee0| 6c 20 72 65 63 65 6e 74 | 20 76 65 72 73 69 6f 6e |l recent| version|
|00004ef0| 73 20 6f 66 20 74 68 65 | 20 41 44 42 20 6d 61 6e |s of the| ADB man|
|00004f00| 61 67 65 72 20 77 69 6c | 6c 20 6e 6f 74 20 61 75 |ager wil|l not au|
|00004f10| 74 6f 6d 61 74 69 63 61 | 6c 6c 79 20 70 6f 6c 6c |tomatica|lly poll|
|00004f20| 20 61 20 64 65 76 69 63 | 65 20 77 68 69 63 68 20 | a devic|e which |
|00004f30| 64 6f 65 73 20 6e 6f 74 | 20 68 61 76 65 20 61 20 |does not| have a |
|00004f40| 64 72 69 76 65 72 20 73 | 65 72 76 69 63 65 20 72 |driver s|ervice r|
|00004f50| 6f 75 74 69 6e 65 20 69 | 6e 73 74 61 6c 6c 65 64 |outine i|nstalled|
|00004f60| 2e 20 20 49 6e 20 74 68 | 69 73 20 63 61 73 65 2c |. In th|is case,|
|00004f70| 20 74 68 65 79 20 77 69 | 6c 6c 20 73 77 69 74 63 | they wi|ll switc|
|00004f80| 68 20 74 6f 20 61 75 74 | 6f 70 6f 6c 6c 69 6e 67 |h to aut|opolling|
|00004f90| 20 73 6f 6d 65 20 6f 74 | 68 65 72 20 64 65 76 69 | some ot|her devi|
|00004fa0| 63 65 2c 20 65 76 65 6e | 20 69 66 20 74 68 61 74 |ce, even| if that|
|00004fb0| 20 64 65 76 69 63 65 20 | 68 61 73 20 6e 6f 74 20 | device |has not |
|00004fc0| 62 65 65 6e 20 72 65 63 | 65 6e 74 6c 79 20 63 6f |been rec|ently co|
|00004fd0| 6d 6d 75 6e 69 63 61 74 | 65 64 20 77 69 74 68 2e |mmunicat|ed with.|
|00004fe0| 20 20 48 6f 77 65 76 65 | 72 2c 20 74 68 65 20 68 | Howeve|r, the h|
|00004ff0| 6f 73 74 20 6d 61 79 20 | 70 6f 6c 6c 20 61 20 64 |ost may |poll a d|
|00005000| 65 76 69 63 65 2c 20 65 | 76 65 6e 20 69 66 20 69 |evice, e|ven if i|
|00005010| 74 20 64 6f 65 73 20 6e | 6f 74 20 68 61 76 65 20 |t does n|ot have |
|00005020| 61 20 73 65 72 76 69 63 | 65 20 72 65 71 75 65 73 |a servic|e reques|
|00005030| 74 2c 20 69 6e 20 6f 72 | 64 65 72 20 74 6f 20 74 |t, in or|der to t|
|00005040| 72 79 20 74 6f 20 63 6c | 65 61 72 20 61 6e 20 53 |ry to cl|ear an S|
|00005050| 52 51 20 6f 6e 20 74 68 | 65 20 62 75 73 2e 0d 42 |RQ on th|e bus..B|
|00005060| 75 73 20 49 6e 69 74 69 | 61 6c 69 7a 61 74 69 6f |us Initi|alizatio|
|00005070| 6e 0d 42 75 73 20 69 6e | 69 74 69 61 6c 69 7a 61 |n.Bus in|itializa|
|00005080| 74 69 6f 6e 20 64 6f 65 | 73 6e 27 74 20 77 6f 72 |tion doe|sn't wor|
|00005090| 6b 20 65 78 61 63 74 6c | 79 20 61 73 20 69 74 20 |k exactl|y as it |
|000050a0| 6d 69 67 68 74 20 73 65 | 65 6d 20 66 72 6f 6d 20 |might se|em from |
|000050b0| 6c 6f 6f 6b 69 6e 67 20 | 61 74 20 73 6f 6d 65 20 |looking |at some |
|000050c0| 64 6f 63 75 6d 65 6e 74 | 61 74 69 6f 6e 2e 20 20 |document|ation. |
|000050d0| 41 20 53 65 6e 64 52 65 | 73 65 74 20 63 6f 6d 6d |A SendRe|set comm|
|000050e0| 61 6e 64 20 69 73 20 6e | 65 76 65 72 20 73 65 6e |and is n|ever sen|
|000050f0| 74 20 74 6f 20 69 6e 64 | 69 76 69 64 75 61 6c 20 |t to ind|ividual |
|00005100| 64 65 76 69 63 65 73 3b | 20 72 61 74 68 65 72 2c |devices;| rather,|
|00005110| 20 77 68 65 6e 20 61 20 | 62 75 73 20 72 65 73 65 | when a |bus rese|
|00005120| 74 20 69 73 20 72 65 71 | 75 65 73 74 65 64 2c 20 |t is req|uested, |
|00005130| 74 68 65 20 41 44 42 20 | 6d 61 6e 61 67 65 72 20 |the ADB |manager |
|00005140| 73 65 6e 64 73 20 61 20 | 53 65 6e 64 52 65 73 65 |sends a |SendRese|
|00005150| 74 20 63 6f 6d 6d 61 6e | 64 20 77 68 69 63 68 20 |t comman|d which |
|00005160| 69 73 20 62 72 6f 61 64 | 63 61 73 74 20 74 6f 20 |is broad|cast to |
|00005170| 61 6c 6c 20 64 65 76 69 | 63 65 73 2c 20 63 61 75 |all devi|ces, cau|
|00005180| 73 69 6e 67 20 74 68 65 | 6d 20 74 6f 20 72 65 73 |sing the|m to res|
|00005190| 65 74 20 74 68 65 6d 73 | 65 6c 76 65 73 20 61 6e |et thems|elves an|
|000051a0| 64 20 67 6f 20 74 6f 20 | 74 68 65 69 72 20 64 65 |d go to |their de|
|000051b0| 66 61 75 6c 74 20 61 64 | 64 72 65 73 73 65 73 20 |fault ad|dresses |
|000051c0| 61 6e 64 20 68 61 6e 64 | 6c 65 72 20 49 44 73 2e |and hand|ler IDs.|
|000051d0| 20 20 54 68 65 20 72 65 | 6c 6f 63 61 74 69 6f 6e | The re|location|
|000051e0| 20 61 6e 64 20 64 72 69 | 76 65 72 20 6c 6f 61 64 | and dri|ver load|
|000051f0| 69 6e 67 20 70 72 6f 63 | 65 64 75 72 65 20 77 69 |ing proc|edure wi|
|00005200| 6c 6c 20 66 6f 6c 6c 6f | 77 20 69 6d 6d 65 64 69 |ll follo|w immedi|
|00005210| 61 74 65 6c 79 20 61 66 | 74 65 72 20 74 68 65 20 |ately af|ter the |
|00005220| 72 65 73 65 74 20 63 6f | 6d 6d 61 6e 64 20 69 73 |reset co|mmand is|
|00005230| 20 73 65 6e 74 2e 0d 41 | 44 42 20 44 72 69 76 65 | sent..A|DB Drive|
|00005240| 72 73 0d 44 72 69 76 65 | 72 20 49 6e 73 74 61 6c |rs.Drive|r Instal|
|00005250| 6c 61 74 69 6f 6e 0d 49 | 6e 20 74 68 65 20 70 61 |lation.I|n the pa|
|00005260| 73 74 2c 20 74 68 65 20 | 72 65 63 6f 6d 6d 65 6e |st, the |recommen|
|00005270| 64 65 64 20 77 61 79 20 | 74 6f 20 69 6e 73 74 61 |ded way |to insta|
|00005280| 6c 6c 20 61 6e 20 41 44 | 42 20 64 72 69 76 65 72 |ll an AD|B driver|
|00005290| 20 77 61 73 20 74 6f 20 | 69 6e 73 74 61 6c 6c 20 | was to |install |
|000052a0| 61 20 72 65 73 6f 75 72 | 63 65 20 6f 66 20 74 79 |a resour|ce of ty|
|000052b0| 70 65 20 27 41 44 42 53 | 27 20 77 69 74 68 20 74 |pe 'ADBS|' with t|
|000052c0| 68 65 20 73 61 6d 65 20 | 72 65 73 6f 75 72 63 65 |he same |resource|
|000052d0| 20 49 44 20 61 73 20 79 | 6f 75 72 20 64 65 76 69 | ID as y|our devi|
|000052e0| 63 65 27 73 20 64 65 66 | 61 75 6c 74 20 61 64 64 |ce's def|ault add|
|000052f0| 72 65 73 73 20 69 6e 20 | 74 68 65 20 73 79 73 74 |ress in |the syst|
|00005300| 65 6d 20 66 69 6c 65 20 | 77 68 69 63 68 20 68 65 |em file |which he|
|00005310| 6c 64 20 63 6f 64 65 20 | 74 6f 20 69 6e 73 74 61 |ld code |to insta|
|00005320| 6c 6c 20 74 68 65 20 64 | 72 69 76 65 72 20 66 6f |ll the d|river fo|
|00005330| 72 20 74 68 65 20 41 44 | 42 20 64 72 69 76 65 72 |r the AD|B driver|
|00005340| 2c 20 61 6c 6f 6e 67 20 | 77 69 74 68 20 74 68 65 |, along |with the|
|00005350| 20 64 72 69 76 65 72 20 | 69 74 73 65 6c 66 2e 20 | driver |itself. |
|00005360| 20 57 68 65 6e 20 74 68 | 65 20 73 79 73 74 65 6d | When th|e system|
|00005370| 20 77 61 73 20 62 6f 6f | 74 65 64 20 6f 72 20 77 | was boo|ted or w|
|00005380| 68 65 6e 20 74 68 65 20 | 62 75 73 20 77 61 73 20 |hen the |bus was |
|00005390| 72 65 69 6e 69 74 69 61 | 6c 69 7a 65 64 2c 20 74 |reinitia|lized, t|
|000053a0| 68 65 20 73 79 73 74 65 | 6d 20 77 6f 75 6c 64 20 |he syste|m would |
|000053b0| 67 65 74 20 74 68 65 20 | 27 41 44 42 53 27 72 65 |get the |'ADBS're|
|000053c0| 73 6f 75 72 63 65 20 61 | 6e 64 20 65 78 65 63 75 |source a|nd execu|
|000053d0| 74 65 20 69 74 2c 20 77 | 68 69 63 68 20 77 6f 75 |te it, w|hich wou|
|000053e0| 6c 64 20 6c 65 74 20 79 | 6f 75 72 20 63 6f 64 65 |ld let y|our code|
|000053f0| 20 73 65 74 20 74 68 65 | 20 64 72 69 76 65 72 20 | set the| driver |
|00005400| 66 6f 72 20 74 68 61 74 | 20 64 65 76 69 63 65 20 |for that| device |
|00005410| 75 70 2e 20 20 55 6e 66 | 6f 72 74 75 6e 61 74 65 |up. Unf|ortunate|
|00005420| 6c 79 2c 20 74 68 69 73 | 20 73 79 73 74 65 6d 20 |ly, this| system |
|00005430| 69 73 20 6e 6f 74 20 77 | 65 6c 6c 20 64 65 73 69 |is not w|ell desi|
|00005440| 67 6e 65 64 20 66 6f 72 | 20 74 68 65 20 77 69 64 |gned for| the wid|
|00005450| 65 20 76 61 72 69 65 74 | 79 20 6f 66 20 64 65 76 |e variet|y of dev|
|00005460| 69 63 65 73 20 61 76 61 | 69 6c 61 62 6c 65 3b 20 |ices ava|ilable; |
|00005470| 74 68 65 20 6d 6f 73 74 | 20 70 72 6f 6d 69 6e 65 |the most| promine|
|00005480| 6e 74 20 66 6c 61 77 20 | 69 73 20 74 68 61 74 20 |nt flaw |is that |
|00005490| 74 68 65 20 27 41 44 42 | 53 27 72 65 73 6f 75 72 |the 'ADB|S'resour|
|000054a0| 63 65 73 20 61 72 65 20 | 69 6e 64 65 78 65 64 20 |ces are |indexed |
|000054b0| 62 79 20 64 65 66 61 75 | 6c 74 20 61 64 64 72 65 |by defau|lt addre|
|000054c0| 73 73 20 6f 6e 6c 79 3b | 20 74 68 75 73 2c 20 74 |ss only;| thus, t|
|000054d0| 68 65 72 65 20 69 73 20 | 6e 6f 20 77 61 79 20 74 |here is |no way t|
|000054e0| 6f 20 75 73 65 20 74 68 | 65 20 27 41 44 42 53 27 |o use th|e 'ADBS'|
|000054f0| 6d 65 63 68 61 6e 69 73 | 6d 20 74 6f 20 6c 6f 61 |mechanis|m to loa|
|00005500| 64 20 64 72 69 76 65 72 | 73 20 66 6f 72 20 74 77 |d driver|s for tw|
|00005510| 6f 20 64 69 66 66 65 72 | 65 6e 74 20 64 65 76 69 |o differ|ent devi|
|00005520| 63 65 73 20 61 74 20 61 | 64 64 72 65 73 73 20 37 |ces at a|ddress 7|
|00005530| 2c 20 61 73 20 74 68 65 | 72 65 20 63 61 6e 20 62 |, as the|re can b|
|00005540| 65 20 6f 6e 6c 79 20 6f | 6e 65 20 72 65 73 6f 75 |e only o|ne resou|
|00005550| 72 63 65 20 77 69 74 68 | 20 49 44 20 37 2e 20 20 |rce with| ID 7. |
|00005560| 41 20 66 75 72 74 68 65 | 72 20 66 6c 61 77 20 69 |A furthe|r flaw i|
|00005570| 73 20 74 68 61 74 20 69 | 74 20 72 65 71 75 69 72 |s that i|t requir|
|00005580| 65 73 20 69 6e 73 74 61 | 6c 6c 61 74 69 6f 6e 20 |es insta|llation |
|00005590| 69 6e 74 6f 20 74 68 65 | 20 73 79 73 74 65 6d 20 |into the| system |
|000055a0| 66 69 6c 65 2c 20 77 68 | 69 63 68 20 69 73 20 6e |file, wh|ich is n|
|000055b0| 6f 74 20 63 75 72 72 65 | 6e 74 6c 79 20 72 65 63 |ot curre|ntly rec|
|000055c0| 6f 6d 6d 65 6e 64 65 64 | 20 66 6f 72 20 61 20 6e |ommended| for a n|
|000055d0| 75 6d 62 65 72 20 6f 66 | 20 72 65 61 73 6f 6e 73 |umber of| reasons|
|000055e0| 2e 20 20 49 6e 20 61 6e | 79 20 63 61 73 65 2c 20 |. In an|y case, |
|000055f0| 69 74 20 68 61 73 20 61 | 6c 77 61 79 73 20 72 65 |it has a|lways re|
|00005600| 71 75 69 72 65 64 20 61 | 20 73 70 65 63 69 61 6c |quired a| special|
|00005610| 20 69 6e 73 74 61 6c 6c | 61 74 69 6f 6e 20 61 6e | install|ation an|
|00005620| 64 20 64 65 69 6e 73 74 | 61 6c 6c 61 74 69 6f 6e |d deinst|allation|
|00005630| 20 70 72 6f 67 72 61 6d | 20 61 6e 64 20 68 61 73 | program| and has|
|00005640| 20 62 65 65 6e 20 6d 6f | 72 65 20 74 68 61 6e 20 | been mo|re than |
|00005650| 61 20 6c 69 74 74 6c 65 | 20 63 6f 6e 66 75 73 69 |a little| confusi|
|00005660| 6e 67 20 66 6f 72 20 75 | 73 65 72 73 2e 0d 43 75 |ng for u|sers..Cu|
|00005670| 72 72 65 6e 74 6c 79 2c | 20 74 68 65 20 72 65 63 |rrently,| the rec|
|00005680| 6f 6d 6d 65 6e 64 65 64 | 20 6d 65 74 68 6f 64 20 |ommended| method |
|00005690| 69 73 20 74 6f 20 73 75 | 70 70 6c 79 20 74 68 65 |is to su|pply the|
|000056a0| 20 75 73 65 72 20 77 69 | 74 68 20 61 20 73 79 73 | user wi|th a sys|
|000056b0| 74 65 6d 20 65 78 74 65 | 6e 73 69 6f 6e 20 77 68 |tem exte|nsion wh|
|000056c0| 69 63 68 20 77 69 6c 6c | 20 6c 6f 61 64 20 79 6f |ich will| load yo|
|000056d0| 75 72 20 64 72 69 76 65 | 72 3b 20 74 68 69 73 20 |ur drive|r; this |
|000056e0| 63 61 6e 20 65 69 74 68 | 65 72 20 62 65 20 61 20 |can eith|er be a |
|000056f0| 73 69 6d 70 6c 65 20 65 | 78 74 65 6e 73 69 6f 6e |simple e|xtension|
|00005700| 2c 20 6f 72 20 69 74 20 | 63 61 6e 20 62 65 20 63 |, or it |can be c|
|00005710| 6f 6e 74 61 69 6e 65 64 | 20 77 69 74 68 69 6e 20 |ontained| within |
|00005720| 61 20 63 6f 6e 74 72 6f | 6c 20 70 61 6e 65 6c 2c |a contro|l panel,|
|00005730| 20 73 68 6f 75 6c 64 20 | 79 6f 75 72 20 64 65 76 | should |your dev|
|00005740| 69 63 65 20 72 65 71 75 | 69 72 65 20 73 6f 6d 65 |ice requ|ire some|
|00005750| 20 75 73 65 72 20 69 6e | 74 65 72 66 61 63 65 20 | user in|terface |
|00005760| 66 6f 72 20 63 6f 6e 66 | 69 67 75 72 61 74 69 6f |for conf|iguratio|
|00005770| 6e 2e 20 20 59 6f 75 72 | 20 63 6f 64 65 2c 20 77 |n. Your| code, w|
|00005780| 68 65 6e 20 6c 6f 61 64 | 65 64 2c 20 73 68 6f 75 |hen load|ed, shou|
|00005790| 6c 64 20 6c 6f 6f 6b 20 | 66 6f 72 20 79 6f 75 72 |ld look |for your|
|000057a0| 20 64 65 76 69 63 65 20 | 61 6e 64 20 69 6e 73 74 | device |and inst|
|000057b0| 61 6c 6c 20 79 6f 75 72 | 20 64 72 69 76 65 72 20 |all your| driver |
|000057c0| 66 6f 72 20 69 74 2e 20 | 49 66 20 79 6f 75 72 20 |for it. |If your |
|000057d0| 64 65 76 69 63 65 20 69 | 73 20 61 74 20 61 20 64 |device i|s at a d|
|000057e0| 65 66 61 75 6c 74 20 61 | 64 64 72 65 73 73 20 77 |efault a|ddress w|
|000057f0| 68 69 63 68 20 69 73 20 | 6e 6f 74 20 73 68 61 72 |hich is |not shar|
|00005800| 65 64 20 77 69 74 68 20 | 73 74 61 6e 64 61 72 64 |ed with |standard|
|00005810| 20 41 70 70 6c 65 20 64 | 65 76 69 63 65 73 2c 20 | Apple d|evices, |
|00005820| 79 6f 75 20 64 6f 6e 27 | 74 20 68 61 76 65 20 74 |you don'|t have t|
|00005830| 6f 20 63 6f 6e 63 65 72 | 6e 65 64 20 77 69 74 68 |o concer|ned with|
|00005840| 20 77 68 61 74 20 64 72 | 69 76 65 72 20 69 73 20 | what dr|iver is |
|00005850| 69 6e 73 74 61 6c 6c 65 | 64 20 66 6f 72 20 79 6f |installe|d for yo|
|00005860| 75 20 62 79 20 64 65 66 | 61 75 6c 74 3b 20 79 6f |u by def|ault; yo|
|00005870| 75 72 20 64 65 76 69 63 | 65 20 63 61 6e 20 6a 75 |ur devic|e can ju|
|00005880| 73 74 20 70 6f 77 65 72 | 20 75 70 20 61 74 20 69 |st power| up at i|
|00005890| 74 73 20 73 74 61 6e 64 | 61 72 64 20 61 64 64 72 |ts stand|ard addr|
|000058a0| 65 73 73 20 77 69 74 68 | 20 69 74 73 20 68 61 6e |ess with| its han|
|000058b0| 64 6c 65 72 20 49 44 2e | 20 20 59 6f 75 72 20 65 |dler ID.| Your e|
|000058c0| 78 74 65 6e 73 69 6f 6e | 20 63 61 6e 20 74 68 65 |xtension| can the|
|000058d0| 6e 20 6c 6f 63 61 74 65 | 20 79 6f 75 72 20 64 65 |n locate| your de|
|000058e0| 76 69 63 65 27 73 20 63 | 75 72 72 65 6e 74 20 61 |vice's c|urrent a|
|000058f0| 64 64 72 65 73 73 20 62 | 79 20 69 6e 64 65 78 69 |ddress b|y indexi|
|00005900| 6e 67 20 74 68 72 6f 75 | 67 68 20 61 6c 6c 20 74 |ng throu|gh all t|
|00005910| 68 65 20 6b 6e 6f 77 6e | 20 64 65 76 69 63 65 73 |he known| devices|
|00005920| 20 77 69 74 68 20 74 68 | 65 20 41 44 42 20 6d 61 | with th|e ADB ma|
|00005930| 6e 61 67 65 72 20 63 61 | 6c 6c 20 47 65 74 41 44 |nager ca|ll GetAD|
|00005940| 42 49 6e 66 6f 28 29 3b | 20 77 68 65 6e 20 79 6f |BInfo();| when yo|
|00005950| 75 20 66 69 6e 64 20 61 | 20 64 65 76 69 63 65 20 |u find a| device |
|00005960| 77 68 6f 73 65 20 69 6e | 69 74 69 61 6c 20 61 64 |whose in|itial ad|
|00005970| 64 72 65 73 73 20 61 6e | 64 20 68 61 6e 64 6c 65 |dress an|d handle|
|00005980| 72 20 49 44 20 6d 61 74 | 63 68 20 79 6f 75 72 20 |r ID mat|ch your |
|00005990| 64 65 76 69 63 65 27 73 | 2c 20 79 6f 75 20 63 61 |device's|, you ca|
|000059a0| 6e 20 63 61 6c 6c 20 53 | 65 74 41 44 42 49 6e 66 |n call S|etADBInf|
|000059b0| 6f 28 29 20 74 6f 20 69 | 6e 73 74 61 6c 6c 20 79 |o() to i|nstall y|
|000059c0| 6f 75 72 20 64 72 69 76 | 65 72 27 73 20 63 6f 6d |our driv|er's com|
|000059d0| 70 6c 65 74 69 6f 6e 20 | 72 6f 75 74 69 6e 65 20 |pletion |routine |
|000059e0| 74 6f 20 68 61 6e 64 6c | 65 20 61 75 74 6f 70 6f |to handl|e autopo|
|000059f0| 6c 6c 65 64 20 64 61 74 | 61 20 66 72 6f 6d 20 79 |lled dat|a from y|
|00005a00| 6f 75 72 20 64 65 76 69 | 63 65 2e 0d 42 65 63 61 |our devi|ce..Beca|
|00005a10| 75 73 65 20 79 6f 75 72 | 20 41 44 42 20 64 72 69 |use your| ADB dri|
|00005a20| 76 65 72 20 69 73 20 69 | 6e 20 61 20 73 79 73 74 |ver is i|n a syst|
|00005a30| 65 6d 20 65 78 74 65 6e | 73 69 6f 6e 20 77 68 69 |em exten|sion whi|
|00005a40| 63 68 20 77 69 6c 6c 20 | 6e 6f 74 20 6c 6f 61 64 |ch will |not load|
|00005a50| 20 75 6e 74 69 6c 20 77 | 65 6c 6c 20 69 6e 74 6f | until w|ell into|
|00005a60| 20 74 68 65 20 73 79 73 | 74 65 6d 20 73 74 61 72 | the sys|tem star|
|00005a70| 74 75 70 20 70 72 6f 63 | 65 73 73 2c 20 69 66 20 |tup proc|ess, if |
|00005a80| 79 6f 75 72 20 64 65 76 | 69 63 65 20 69 73 20 61 |your dev|ice is a|
|00005a90| 20 73 74 61 6e 64 61 72 | 64 20 6f 6e 65 20 28 61 | standar|d one (a|
|00005aa0| 20 70 6f 69 6e 74 69 6e | 67 20 64 65 76 69 63 65 | pointin|g device|
|00005ab0| 20 6f 72 20 6b 65 79 62 | 6f 61 72 64 29 20 79 6f | or keyb|oard) yo|
|00005ac0| 75 20 6d 69 67 68 74 20 | 6e 65 65 64 20 74 6f 20 |u might |need to |
|00005ad0| 70 72 6f 76 69 64 65 20 | 73 74 61 6e 64 61 72 64 |provide |standard|
|00005ae0| 20 73 79 73 74 65 6d 20 | 66 75 6e 63 74 69 6f 6e | system |function|
|00005af0| 61 6c 69 74 79 20 62 65 | 66 6f 72 65 20 79 6f 75 |ality be|fore you|
|00005b00| 72 20 64 72 69 76 65 72 | 20 6c 6f 61 64 73 20 69 |r driver| loads i|
|00005b10| 6e 20 6f 72 64 65 72 20 | 74 6f 20 61 6c 6c 6f 77 |n order |to allow|
|00005b20| 20 74 68 65 20 75 73 65 | 72 20 74 6f 20 69 6e 74 | the use|r to int|
|00005b30| 65 72 61 63 74 20 77 69 | 74 68 20 74 68 65 20 73 |eract wi|th the s|
|00005b40| 79 73 74 65 6d 20 64 75 | 72 69 6e 67 20 74 68 65 |ystem du|ring the|
|00005b50| 20 73 74 61 72 74 75 70 | 20 70 72 6f 63 65 73 73 | startup| process|
|00005b60| 2e 20 20 54 68 69 73 20 | 61 6c 73 6f 20 61 6c 6c |. This |also all|
|00005b70| 6f 77 73 20 74 68 65 20 | 75 73 65 72 20 74 6f 20 |ows the |user to |
|00005b80| 75 73 65 20 79 6f 75 72 | 20 64 65 76 69 63 65 20 |use your| device |
|00005b90| 74 6f 20 63 6f 6e 74 72 | 6f 6c 20 74 68 65 69 72 |to contr|ol their|
|00005ba0| 20 6d 61 63 68 69 6e 65 | 20 65 76 65 6e 20 69 66 | machine| even if|
|00005bb0| 20 74 68 65 79 20 64 6f | 6e 27 74 20 68 61 76 65 | they do|n't have|
|00005bc0| 20 74 68 65 20 73 6f 66 | 74 77 61 72 65 20 69 6e | the sof|tware in|
|00005bd0| 73 74 61 6c 6c 65 64 2c | 20 73 75 63 68 20 61 73 |stalled,| such as|
|00005be0| 20 77 68 65 6e 20 74 68 | 65 79 20 61 72 65 20 62 | when th|ey are b|
|00005bf0| 6f 6f 74 69 6e 67 20 6f | 66 66 20 6f 66 20 61 20 |ooting o|ff of a |
|00005c00| 66 6c 6f 70 70 79 2e 20 | 20 49 6e 20 74 68 69 73 |floppy. | In this|
|00005c10| 20 63 61 73 65 2c 20 79 | 6f 75 72 20 64 65 76 69 | case, y|our devi|
|00005c20| 63 65 20 77 69 6c 6c 20 | 6e 65 65 64 20 74 6f 20 |ce will |need to |
|00005c30| 62 65 20 61 62 6c 65 20 | 74 6f 20 65 6d 75 6c 61 |be able |to emula|
|00005c40| 74 65 20 74 68 65 20 41 | 70 70 6c 65 20 70 72 6f |te the A|pple pro|
|00005c50| 74 6f 63 6f 6c 20 66 6f | 72 20 6d 6f 75 73 65 20 |tocol fo|r mouse |
|00005c60| 6f 72 20 6b 65 79 62 6f | 61 72 64 20 64 65 76 69 |or keybo|ard devi|
|00005c70| 63 65 73 20 75 6e 74 69 | 6c 20 79 6f 75 72 20 73 |ces unti|l your s|
|00005c80| 6f 66 74 77 61 72 65 20 | 64 72 69 76 65 72 20 6c |oftware |driver l|
|00005c90| 6f 61 64 73 2c 20 61 73 | 20 64 69 73 63 75 73 73 |oads, as| discuss|
|00005ca0| 65 64 20 61 62 6f 76 65 | 20 69 6e 20 22 44 65 66 |ed above| in "Def|
|00005cb0| 61 75 6c 74 20 41 64 64 | 72 65 73 73 65 73 20 61 |ault Add|resses a|
|00005cc0| 6e 64 20 48 61 6e 64 6c | 65 72 20 49 44 73 22 2e |nd Handl|er IDs".|
|00005cd0| 20 20 55 6e 74 69 6c 20 | 79 6f 75 72 20 64 72 69 | Until |your dri|
|00005ce0| 76 65 72 20 69 73 20 69 | 6e 73 74 61 6c 6c 65 64 |ver is i|nstalled|
|00005cf0| 2c 20 79 6f 75 72 20 64 | 65 76 69 63 65 20 77 69 |, your d|evice wi|
|00005d00| 6c 6c 20 62 65 20 73 65 | 72 76 69 63 65 64 20 62 |ll be se|rviced b|
|00005d10| 79 20 74 68 65 20 64 65 | 66 61 75 6c 74 20 64 72 |y the de|fault dr|
|00005d20| 69 76 65 72 20 66 6f 72 | 20 74 68 69 73 20 61 64 |iver for| this ad|
|00005d30| 64 72 65 73 73 3b 20 74 | 68 69 73 20 6d 65 61 6e |dress; t|his mean|
|00005d40| 73 20 74 68 61 74 20 69 | 66 20 79 6f 75 72 20 64 |s that i|f your d|
|00005d50| 65 76 69 63 65 20 69 73 | 20 61 74 20 61 64 64 72 |evice is| at addr|
|00005d60| 65 73 73 20 32 20 6f 72 | 20 33 2c 20 65 76 65 6e |ess 2 or| 3, even|
|00005d70| 20 69 66 20 69 74 20 63 | 61 6e 6e 6f 74 20 65 6d | if it c|annot em|
|00005d80| 75 6c 61 74 65 20 61 6e | 20 41 70 70 6c 65 20 64 |ulate an| Apple d|
|00005d90| 65 76 69 63 65 2c 20 69 | 74 20 6d 75 73 74 20 73 |evice, i|t must s|
|00005da0| 75 70 70 6c 79 20 68 61 | 72 6d 6c 65 73 73 20 64 |upply ha|rmless d|
|00005db0| 61 74 61 20 69 6e 20 72 | 65 67 69 73 74 65 72 20 |ata in r|egister |
|00005dc0| 30 20 75 6e 74 69 6c 20 | 79 6f 75 72 20 64 72 69 |0 until |your dri|
|00005dd0| 76 65 72 20 6c 6f 61 64 | 73 20 61 6e 64 20 69 73 |ver load|s and is|
|00005de0| 20 69 6e 73 74 61 6c 6c | 65 64 2c 20 61 73 20 74 | install|ed, as t|
|00005df0| 68 65 20 41 70 70 6c 65 | 20 41 44 42 20 64 72 69 |he Apple| ADB dri|
|00005e00| 76 65 72 20 66 6f 72 20 | 74 68 61 74 20 61 64 64 |ver for |that add|
|00005e10| 72 65 73 73 20 6d 61 79 | 20 69 6e 61 64 76 65 72 |ress may| inadver|
|00005e20| 74 65 6e 74 6c 79 20 72 | 65 63 65 69 76 65 20 74 |tently r|eceive t|
|00005e30| 68 65 20 63 6f 6e 74 65 | 6e 74 73 20 6f 66 20 79 |he conte|nts of y|
|00005e40| 6f 75 72 20 72 65 67 69 | 73 74 65 72 20 30 20 61 |our regi|ster 0 a|
|00005e50| 6e 64 20 61 74 74 65 6d | 70 74 20 74 6f 20 75 73 |nd attem|pt to us|
|00005e60| 65 20 69 74 20 61 73 20 | 69 6e 70 75 74 20 64 61 |e it as |input da|
|00005e70| 74 61 2e 20 20 49 66 20 | 74 68 65 20 64 61 74 61 |ta. If |the data|
|00005e80| 20 69 6e 20 79 6f 75 72 | 20 66 69 65 6c 64 20 63 | in your| field c|
|00005e90| 61 75 73 65 64 20 65 66 | 66 65 63 74 73 20 73 75 |aused ef|fects su|
|00005ea0| 63 68 20 61 73 20 74 68 | 65 20 6d 6f 75 73 65 20 |ch as th|e mouse |
|00005eb0| 62 75 74 74 6f 6e 20 6f | 72 20 73 68 69 66 74 20 |button o|r shift |
|00005ec0| 6b 65 79 20 73 74 69 63 | 6b 69 6e 67 20 64 6f 77 |key stic|king dow|
|00005ed0| 6e 2c 20 74 68 69 73 20 | 63 6f 75 6c 64 20 63 61 |n, this |could ca|
|00005ee0| 75 73 65 20 70 72 6f 62 | 6c 65 6d 73 20 66 6f 72 |use prob|lems for|
|00005ef0| 20 74 68 65 20 75 73 65 | 72 2e 0d 49 66 20 79 6f | the use|r..If yo|
|00005f00| 75 20 75 73 65 20 74 68 | 65 20 72 65 63 6f 6d 6d |u use th|e recomm|
|00005f10| 65 6e 64 65 64 20 70 72 | 6f 63 65 64 75 72 65 20 |ended pr|ocedure |
|00005f20| 66 6f 72 20 68 61 6e 64 | 6c 65 72 20 49 44 73 20 |for hand|ler IDs |
|00005f30| 69 6e 20 74 68 69 73 20 | 63 61 73 65 2c 20 70 6f |in this |case, po|
|00005f40| 77 65 72 69 6e 67 20 75 | 70 20 77 69 74 68 20 74 |wering u|p with t|
|00005f50| 68 65 20 61 70 70 72 6f | 70 72 69 61 74 65 20 41 |he appro|priate A|
|00005f60| 70 70 6c 65 20 68 61 6e | 64 6c 65 72 20 49 44 20 |pple han|dler ID |
|00005f70| 61 6e 64 20 73 77 69 74 | 63 68 69 6e 67 20 74 6f |and swit|ching to|
|00005f80| 20 79 6f 75 72 20 63 75 | 73 74 6f 6d 20 49 44 20 | your cu|stom ID |
|00005f90| 77 68 65 6e 20 79 6f 75 | 72 20 64 72 69 76 65 72 |when you|r driver|
|00005fa0| 20 6c 6f 61 64 73 2c 20 | 79 6f 75 20 77 69 6c 6c | loads, |you will|
|00005fb0| 20 6e 65 65 64 20 74 6f | 20 75 73 65 20 41 44 42 | need to| use ADB|
|00005fc0| 20 63 6f 6d 6d 61 6e 64 | 73 20 74 6f 20 66 69 6e | command|s to fin|
|00005fd0| 64 20 79 6f 75 72 20 64 | 65 76 69 63 65 20 61 74 |d your d|evice at|
|00005fe0| 20 73 74 61 72 74 75 70 | 2e 20 20 59 6f 75 20 73 | startup|. You s|
|00005ff0| 68 6f 75 6c 64 20 69 6e | 64 65 78 20 74 68 72 6f |hould in|dex thro|
|00006000| 75 67 68 20 74 68 65 20 | 63 6f 6e 6e 65 63 74 65 |ugh the |connecte|
|00006010| 64 20 41 44 42 20 64 65 | 76 69 63 65 73 20 77 69 |d ADB de|vices wi|
|00006020| 74 68 20 47 65 74 41 44 | 42 49 6e 66 6f 28 29 20 |th GetAD|BInfo() |
|00006030| 61 6e 64 20 69 66 20 79 | 6f 75 20 66 69 6e 64 20 |and if y|ou find |
|00006040| 61 20 64 65 76 69 63 65 | 20 77 68 69 63 68 20 68 |a device| which h|
|00006050| 61 73 20 61 6e 20 6f 72 | 69 67 69 6e 61 6c 20 61 |as an or|iginal a|
|00006060| 64 64 72 65 73 73 20 61 | 6e 64 20 68 61 6e 64 6c |ddress a|nd handl|
|00006070| 65 72 20 49 44 20 77 68 | 69 63 68 20 69 6e 64 69 |er ID wh|ich indi|
|00006080| 63 61 74 65 73 20 74 68 | 61 74 20 69 74 20 6d 69 |cates th|at it mi|
|00006090| 67 68 74 20 62 65 20 79 | 6f 75 72 20 64 65 76 69 |ght be y|our devi|
|000060a0| 63 65 2c 20 61 74 74 65 | 6d 70 74 20 74 6f 20 73 |ce, atte|mpt to s|
|000060b0| 77 69 74 63 68 20 69 74 | 20 74 6f 20 79 6f 75 72 |witch it| to your|
|000060c0| 20 68 61 6e 64 6c 65 72 | 20 49 44 20 62 79 20 75 | handler| ID by u|
|000060d0| 73 69 6e 67 20 41 44 42 | 4f 70 28 29 20 74 6f 20 |sing ADB|Op() to |
|000060e0| 73 65 6e 64 20 69 74 20 | 61 20 6c 69 73 74 65 6e |send it |a listen|
|000060f0| 20 72 65 67 69 73 74 65 | 72 20 33 20 74 6f 20 63 | registe|r 3 to c|
|00006100| 68 61 6e 67 65 20 69 74 | 73 20 68 61 6e 64 6c 65 |hange it|s handle|
|00006110| 72 20 49 44 2e 20 20 28 | 59 6f 75 20 77 69 6c 6c |r ID. (|You will|
|00006120| 20 66 69 72 73 74 20 6e | 65 65 64 20 74 6f 20 72 | first n|eed to r|
|00006130| 65 61 64 20 69 74 73 20 | 72 65 67 69 73 74 65 72 |ead its |register|
|00006140| 20 33 20 77 69 74 68 20 | 61 20 74 61 6c 6b 20 72 | 3 with |a talk r|
|00006150| 65 67 69 73 74 65 72 20 | 33 20 63 6f 6d 6d 61 6e |egister |3 comman|
|00006160| 64 20 73 6f 20 79 6f 75 | 20 63 61 6e 20 63 6f 72 |d so you| can cor|
|00006170| 72 65 63 74 6c 79 20 63 | 6f 70 79 20 74 68 65 20 |rectly c|opy the |
|00006180| 76 61 72 69 6f 75 73 20 | 66 6c 61 67 20 62 69 74 |various |flag bit|
|00006190| 73 20 69 6e 20 74 68 65 | 20 72 65 67 69 73 74 65 |s in the| registe|
|000061a0| 72 20 79 6f 75 20 73 65 | 6e 64 20 74 6f 20 74 68 |r you se|nd to th|
|000061b0| 65 20 64 65 76 69 63 65 | 2e 29 20 20 59 6f 75 20 |e device|.) You |
|000061c0| 73 68 6f 75 6c 64 20 74 | 68 65 6e 20 69 73 73 75 |should t|hen issu|
|000061d0| 65 20 61 20 74 61 6c 6b | 20 72 65 67 69 73 74 65 |e a talk| registe|
|000061e0| 72 20 33 20 63 6f 6d 6d | 61 6e 64 20 74 6f 20 74 |r 3 comm|and to t|
|000061f0| 68 65 20 64 65 76 69 63 | 65 20 61 6e 64 20 65 78 |he devic|e and ex|
|00006200| 61 6d 69 6e 65 20 74 68 | 65 20 72 65 73 70 6f 6e |amine th|e respon|
|00006210| 73 65 20 74 6f 20 73 65 | 65 20 69 66 20 74 68 65 |se to se|e if the|
|00006220| 20 6e 65 77 20 68 61 6e | 64 6c 65 72 20 49 44 20 | new han|dler ID |
|00006230| 77 61 73 20 61 63 63 65 | 70 74 65 64 20 61 6e 64 |was acce|pted and|
|00006240| 20 72 65 70 6f 72 74 65 | 64 20 62 61 63 6b 20 62 | reporte|d back b|
|00006250| 79 20 74 68 65 20 64 65 | 76 69 63 65 3b 20 69 66 |y the de|vice; if|
|00006260| 20 73 6f 2c 20 79 6f 75 | 20 63 61 6e 20 62 65 20 | so, you| can be |
|00006270| 63 65 72 74 61 69 6e 20 | 74 68 61 74 20 74 68 69 |certain |that thi|
|00006280| 73 20 64 65 76 69 63 65 | 20 69 73 20 79 6f 75 72 |s device| is your|
|00006290| 20 64 65 76 69 63 65 20 | 61 6e 64 20 79 6f 75 20 | device |and you |
|000062a0| 63 61 6e 20 74 68 65 6e | 20 63 61 6c 6c 20 53 65 |can then| call Se|
|000062b0| 74 41 44 42 49 6e 66 6f | 28 29 20 74 6f 20 69 6e |tADBInfo|() to in|
|000062c0| 73 74 61 6c 6c 20 79 6f | 75 72 20 64 72 69 76 65 |stall yo|ur drive|
|000062d0| 72 20 61 73 20 74 68 65 | 20 68 61 6e 64 6c 65 72 |r as the| handler|
|000062e0| 20 66 6f 72 20 74 68 61 | 74 20 64 65 76 69 63 65 | for tha|t device|
|000062f0| 2e 0d 49 6e 20 74 68 65 | 20 6f 72 69 67 69 6e 61 |..In the| origina|
|00006300| 6c 20 6d 65 74 68 6f 64 | 20 75 73 69 6e 67 20 27 |l method| using '|
|00006310| 41 44 42 53 27 20 72 65 | 73 6f 75 72 63 65 73 2c |ADBS' re|sources,|
|00006320| 20 74 68 65 20 73 79 73 | 74 65 6d 20 63 6f 75 6c | the sys|tem coul|
|00006330| 64 20 61 75 74 6f 6d 61 | 74 69 63 61 6c 6c 79 20 |d automa|tically |
|00006340| 72 65 6c 6f 61 64 20 79 | 6f 75 72 20 64 72 69 76 |reload y|our driv|
|00006350| 65 72 20 61 6e 79 20 74 | 69 6d 65 20 74 68 65 20 |er any t|ime the |
|00006360| 62 75 73 20 77 61 73 20 | 72 65 69 6e 69 74 69 61 |bus was |reinitia|
|00006370| 6c 69 7a 65 64 2e 20 20 | 49 66 20 79 6f 75 72 20 |lized. |If your |
|00006380| 64 72 69 76 65 72 20 69 | 73 20 6c 6f 61 64 65 64 |driver i|s loaded|
|00006390| 20 76 69 61 20 61 20 73 | 79 73 74 65 6d 20 65 78 | via a s|ystem ex|
|000063a0| 74 65 6e 73 69 6f 6e 20 | 74 68 65 72 65 20 69 73 |tension |there is|
|000063b0| 6e 27 74 20 61 6e 79 20 | 77 61 79 20 66 6f 72 20 |n't any |way for |
|000063c0| 74 68 65 20 73 79 73 74 | 65 6d 20 74 6f 20 66 69 |the syst|em to fi|
|000063d0| 6e 64 20 79 6f 75 72 20 | 64 65 76 69 63 65 20 61 |nd your |device a|
|000063e0| 6e 64 20 64 72 69 76 65 | 72 20 61 6e 64 20 72 65 |nd drive|r and re|
|000063f0| 63 6f 6e 6e 65 63 74 20 | 74 68 65 6d 20 61 66 74 |connect |them aft|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.